From 99a151fd85b9cf5204cbded10edb8c57b8ee1cd0 Mon Sep 17 00:00:00 2001 From: kasterra Date: Sun, 26 May 2024 20:25:45 +0900 Subject: [PATCH] fix : only show Main only classImplementation --- .../$practiceId+/$labId/SubmitModal.tsx | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/app/routes/_procted+/lectures+/$lectureId+/$practiceId+/$labId/SubmitModal.tsx b/app/routes/_procted+/lectures+/$lectureId+/$practiceId+/$labId/SubmitModal.tsx index f135a20..f9d37cd 100644 --- a/app/routes/_procted+/lectures+/$lectureId+/$practiceId+/$labId/SubmitModal.tsx +++ b/app/routes/_procted+/lectures+/$lectureId+/$practiceId+/$labId/SubmitModal.tsx @@ -169,16 +169,20 @@ const SubmitModal = ({ isOpen, onClose }: Props) => { 제출 -
-

주어진 Main 코드 : {problemDetail!.prepared_main.code.name}

- null} - readOnly - /> -
+ {problemDetail!.type === "class_implementation" ? ( +
+

+ 주어진 Main 코드 : {problemDetail!.prepared_main.code.name} +

+ null} + readOnly + /> +
+ ) : null} )}