Skip to content

Commit

Permalink
nit(question-service): make testcode and input required
Browse files Browse the repository at this point in the history
  • Loading branch information
HollaG committed Nov 9, 2024
1 parent c11b7c1 commit bad9f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default function CreateQuestionPage() {
label="Template Code"
code={templateCode}
onCodeChange={setTemplateCode}
required={false}
required={true}
/>

<TextInput
Expand Down Expand Up @@ -275,14 +275,15 @@ export default function CreateQuestionPage() {
)
}
minRows={8}
required={true}
/>
<CodeEditorWithLanguageSelector
label={`Test Code ${index + 1}`}
code={testCase.testCode}
onCodeChange={(value) =>
handleTestCaseChange(index, "testCode", value)
}
required={false}
required={true}
height="130px"
/>
<Textarea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export default function EditQuestionPage() {
label="Template Code"
code={templateCode}
onCodeChange={setTemplateCode}
required={false}
required={true}
/>

<TextInput
Expand Down Expand Up @@ -342,14 +342,15 @@ export default function EditQuestionPage() {
)
}
minRows={8}
required
/>
<CodeEditorWithLanguageSelector
label={`Test Code ${index + 1}`}
code={testCase.testCode}
onCodeChange={(value) =>
handleTestCaseChange(index, "testCode", value)
}
required={false}
required={true}
height="130px"
/>
<Textarea
Expand Down

0 comments on commit bad9f7d

Please sign in to comment.