From dc847416a9312d3995b71edcb968d5d60fb16325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=84=9C=ED=98=84?= Date: Wed, 4 Sep 2024 17:56:05 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20=EB=82=98=EC=9D=98=20=EC=8A=A4?= =?UTF-8?q?=ED=84=B0=EB=94=94=20=ED=8E=98=EC=9D=B4=EC=A7=80=20QA=20?= =?UTF-8?q?=EB=B0=98=EC=98=81=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 커리큘럼 과제 제출하기 리다이렉트 추가 * chore: 스터디 커리큘럼 상세 정보 없는 경우 처리 * fix: 과제 수행하지 않은 경우 오늘의 할 일 나의 과제 바로가기 버튼 활성화 * chore: 과제 상태 박스에서 제출 전 상태 고려하도록 수정 --- .../_components/AssignmentStatusBox.tsx | 14 +++++------ .../my-study/_components/StudyCurriculum.tsx | 25 ++++++++++++++++--- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx b/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx index 8a4535d6..b7b9b238 100644 --- a/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx +++ b/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx @@ -13,10 +13,7 @@ import Tag from "wowds-ui/Tag"; interface AssignmentStatusBoxProps { week: number; name: string; - assignmentSubmissionStatus: Extract< - AssignmentSubmissionStatusType, - "SUCCESS" | "FAILURE" - >; + assignmentSubmissionStatus: AssignmentSubmissionStatusType; deadLine: string; } @@ -30,9 +27,9 @@ const AssignmentStatusBox = ({ const attendanceDeadline = `${year}년 ${month}월 ${day}일 ${padWithZero(hours)}:${padWithZero(minutes)}까지`; const { - label: assignmentSubmissionStatusLabel = "", + label: assignmentSubmissionStatusLabel, color: assignmentSubmissionStatusColor, - } = assignmentSubmissionStatusMap[assignmentSubmissionStatus] || {}; + } = assignmentSubmissionStatusMap[assignmentSubmissionStatus]; return (