Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/constants/gathering/opinion/distance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export const DISTANCE_RANGE_LABEL = {
ANY: "상관없음",
} as const;

/** RANGE_500M → 7분, RANGE_1KM → 15분 (도보 평균 속도 기준) */
export const DISTANCE_RANGE_WALKING_MINUTES: Record<Exclude<DistanceRange, "ANY">, number> = {
RANGE_500M: 7,
RANGE_1KM: 15,
};

export const DISTANCE_OPTIONS: ReadonlyArray<{
value: DistanceRange;
label: string;
Expand Down
2 changes: 2 additions & 0 deletions src/constants/gathering/opinion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export { OPINION_STEP_ORDER, OPINION_TOTAL_STEPS } from "./funnel";
export {
DISTANCE_RANGE,
DISTANCE_RANGE_LABEL,
DISTANCE_RANGE_WALKING_MINUTES,
DISTANCE_OPTIONS,
type DistanceRange,
} from "./distance";
Expand All @@ -15,3 +16,4 @@ export { RANKS, RANK_LABELS } from "./rank";
export { REGION, REGION_LABEL, REGION_OPTIONS, type Region } from "./region";
export { UI_TEXT } from "./ui-text";
export { MOCK_MEETING_DATA } from "./meeting";
export { TIME_SLOT_LABEL } from "./timeSlot";
6 changes: 6 additions & 0 deletions src/constants/gathering/opinion/timeSlot.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { TimeSlot } from "#/types/gathering";

export const TIME_SLOT_LABEL: Record<TimeSlot, string> = {
LUNCH: "점심",
DINNER: "저녁",
};
7 changes: 2 additions & 5 deletions src/pageComponents/gathering/create/DateStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ import { isValidDateFormat } from "#/utils/gathering/create";
import type { CreateMeetingFormSchema } from "#/schemas/gathering";
import type { TimeSlot } from "#/types/gathering";

import { ScheduledDatePicker } from "./ScheduledDatePicker";
import { TIME_SLOT_LABEL } from "#/constants/gathering/opinion";

const TIME_SLOT_LABEL: Record<TimeSlot, string> = {
LUNCH: "점심",
DINNER: "저녁",
};
import { ScheduledDatePicker } from "./ScheduledDatePicker";

export const DateStepContent = () => {
const { control } = useFormContext<CreateMeetingFormSchema>();
Expand Down
Loading