Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix : only show Main only classImplementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kasterra committed May 26, 2024
1 parent 5c15852 commit 99a151f
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,20 @@ const SubmitModal = ({ isOpen, onClose }: Props) => {
제출
</button>
</div>
<div className={styles["modal-body"]} style={{ minWidth: "500px" }}>
<h4>주어진 Main 코드 : {problemDetail!.prepared_main.code.name}</h4>
<CodeBlock
height={500}
language={problemDetail!.prepared_main.language}
value={problemDetail!.prepared_main.code.content}
onChange={() => null}
readOnly
/>
</div>
{problemDetail!.type === "class_implementation" ? (
<div className={styles["modal-body"]} style={{ minWidth: "500px" }}>
<h4>
주어진 Main 코드 : {problemDetail!.prepared_main.code.name}
</h4>
<CodeBlock
height={500}
language={problemDetail!.prepared_main.language}
value={problemDetail!.prepared_main.code.content}
onChange={() => null}
readOnly
/>
</div>
) : null}
</form>
)}
</Modal>
Expand Down

0 comments on commit 99a151f

Please sign in to comment.