Skip to content

Commit 08a417b

Browse files
committed
issue #192 fix: change teamScheduleModal format
1 parent 57833f8 commit 08a417b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/Team/TeamSchedule/Modal/AddTeamScheduleModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ const AddTeamScheduleModal = ({ teamId }: { teamId: number }) => {
7373
</Box>
7474
<Box style={{ marginBottom: "16px" }}>
7575
<Heading size="xSmall" css={addTeamScheduleModalContentTitleStyle}>
76-
날짜
76+
기간
7777
</Heading>
7878
<Flex style={{ flexDirection: "column", marginTop: "8px" }}>
7979
<Form.DateRangeInputField />
8080
</Flex>
8181
</Box>
8282
<Box style={{ marginBottom: "16px" }}>
8383
<Heading size="xSmall" css={addTeamScheduleModalContentTitleStyle}>
84-
시간
84+
반복 시간
8585
</Heading>
8686
<Flex style={{ flexDirection: "column", marginTop: "8px" }}>
8787
<Form.TimeRangeInputField />

src/components/Team/TeamSchedule/TeamScheduleCard/TeamScheduleCard.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Box, Flex, Heading, Text } from "@/components/common";
22
import { format } from "date-fns";
3+
import { ko } from "date-fns/locale";
34

45
import { getTeamScheduleStatus } from "@/utils/getTeamScheduleStatus";
56

@@ -27,8 +28,12 @@ const TeamScheduleCard = ({ teamScheduleData }: { teamScheduleData: TeamSchedule
2728
{scheduleStatusString}
2829
</Flex>
2930
</Flex>
30-
<Text>{format(startDate, "yyyy년 M월 dd일 a HH:mm")}</Text>
31-
<Text>{format(endDate, "yyyy년 M월 dd일 a HH:mm")}</Text>
31+
<Text>
32+
{format(startDate, "yyyy년 M월 d일")} ~ {format(endDate, "yyyy년 M월 d일")}
33+
</Text>
34+
<Text>
35+
{format(startDate, "a h:mm", { locale: ko })} ~ {format(endDate, "a h:mm", { locale: ko })}
36+
</Text>
3237
<Flex style={{ alignItems: "center", justifyContent: "space-between" }}>
3338
{status !== "CLOSING" && (
3439
<>

0 commit comments

Comments
 (0)