From 3c02230c8d86808e514f3bb36c343f18abb3e5d1 Mon Sep 17 00:00:00 2001 From: SeieunYoo Date: Tue, 20 Aug 2024 12:37:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20LInk=20=EB=A1=9C=20=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_components/HomeworkBoxWithLinkEdit.tsx | 48 +++++++++++-------- .../HomeworkHistory/HomeworkHistoryItem.tsx | 17 ++++--- .../_components/HomeworkOverviewBox.tsx | 35 +++++++------- .../study-apply/_components/StudyItem.tsx | 5 +- .../types/dtos/study-detail-dashboard.ts | 4 +- apps/client/types/dtos/study-history.ts | 4 +- apps/client/types/entities/assignment.ts | 1 - apps/client/types/entities/homework.ts | 1 + 8 files changed, 65 insertions(+), 50 deletions(-) delete mode 100644 apps/client/types/entities/assignment.ts create mode 100644 apps/client/types/entities/homework.ts diff --git a/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkBoxWithLinkEdit.tsx b/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkBoxWithLinkEdit.tsx index e953c0d0..81ea73f6 100644 --- a/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkBoxWithLinkEdit.tsx +++ b/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkBoxWithLinkEdit.tsx @@ -4,8 +4,9 @@ import { Space, Text } from "@wow-class/ui"; import { padWithZero, parseISODate } from "@wow-class/utils"; import { tags } from "constants/tags"; import { revalidateTag } from "next/cache"; +import Link from "next/link"; import type { SubmittableAssignment } from "types/dtos/study-detail-dashboard"; -import { Link, Reload } from "wowds-icons"; +import { Link as LinkIcon, Reload as ReloadIcon } from "wowds-icons"; import Box from "wowds-ui/Box"; import Button from "wowds-ui/Button"; import TextButton from "wowds-ui/TextButton"; @@ -50,33 +51,40 @@ export const HomeworkBoxWithLinkEdit = ({ {title} - + + + {deadlineText} - + + + + - - + + + ) : ( "-" )} @@ -81,7 +86,7 @@ export const HomeworkHistoryItem = ({ history }: HomeworkHistoryItemProps) => { }; const homeworkSubmissionMap: Record< - AssignmentSubmissionStatusType, + HomeworkSubmissionStatusType, { message: string; color: ComponentProps["color"] } > = { FAILURE: { diff --git a/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkOverviewBox.tsx b/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkOverviewBox.tsx index 70f45c74..a97fb011 100644 --- a/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkOverviewBox.tsx +++ b/apps/client/app/(afterLogin)/my-study/my-homework/_components/HomeworkOverviewBox.tsx @@ -4,9 +4,10 @@ import { Flex, styled } from "@styled-system/jsx"; import { Space, Text } from "@wow-class/ui"; import { tags } from "constants/tags"; import { revalidateTag } from "next/cache"; +import Link from "next/dist/client/link"; import Image from "next/image"; import type { SubmittableAssignment } from "types/dtos/study-detail-dashboard"; -import { Link, Reload } from "wowds-icons"; +import { Link as LinkIcon, Reload as ReloadIcon } from "wowds-icons"; import Box from "wowds-ui/Box"; import Button from "wowds-ui/Button"; import Tag from "wowds-ui/Tag"; @@ -40,12 +41,12 @@ export const HomeworkOverviewBox = ({ {assignment.assignmentSubmissionStatus} - + + + 종료 일시 : {assignment.deadline} @@ -63,18 +64,18 @@ export const HomeworkOverviewBox = ({ - + + +