From b30e463d119e5e7dfccae6cbed2d227a28c56fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=84=9D?= Date: Mon, 14 Oct 2024 11:21:22 +0900 Subject: [PATCH] [FIX] review form button (#186) (#187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 임시저장 버튼 추가 * fix: 학생 페이지 심사 결과보고서 필드명 수정 --- .../pages/review/Review/FinalReview.tsx | 26 +++++++++++++--- .../pages/review/Review/ProfessorReview.tsx | 30 ++++++++++++++++--- .../pages/review/Review/ReviewList.tsx | 4 +-- .../pages/review/Review/ReviewResult.tsx | 2 +- 4 files changed, 51 insertions(+), 11 deletions(-) diff --git a/src/components/pages/review/Review/FinalReview.tsx b/src/components/pages/review/Review/FinalReview.tsx index 7ce7f2d4..5916f393 100644 --- a/src/components/pages/review/Review/FinalReview.tsx +++ b/src/components/pages/review/Review/FinalReview.tsx @@ -1,4 +1,6 @@ -import { Button, Stack, Text } from "@mantine/core"; +"use client"; + +import { Button, Group, Stack, Text } from "@mantine/core"; import Link from "next/link"; import { UseFormReturnType } from "@mantine/form"; import { @@ -35,7 +37,6 @@ export function FinalReview({ setCommentType, }: FinalReviewProps) { const { status } = form.values; - const hasPending = status === "PENDING"; return ( @@ -71,17 +72,34 @@ export function FinalReview({ disabled={commentType !== "심사 의견 파일"} /> */} + + + 임시저장 시 합격여부는 자동으로 보류로 선택됩니다. + + { + form.setValues({ status: "PENDING" }); + }} + color="violet" + type="submit" + loading={currentState === "pending"} + disabled={currentState === "submitted"} + > + 임시저장 + , , , ,