Fakultas Ilmu Komputer UI

Commit 5b16c06f authored by Rony Agus Vian's avatar Rony Agus Vian
Browse files

[CHORES] Change button name behavior

parent a7207bba
Pipeline #69844 passed with stages
in 14 minutes and 5 seconds
......@@ -180,16 +180,13 @@ export default function NewCaseForm() {
</Box>
<Button id="checkedButton" onClick={ () => {
setNewCaseChecked(!(newCaseChecked));
}}>Sudah diperiksa?</Button>
{( () => {
if(newCaseChecked) {
return (
<>
<Button id="checkedButton" onClick={ () => {
setNewCaseChecked(!(newCaseChecked));
}}>Belum diperiksa?</Button>
<Gap axis={Gap.Axis.Vertical} gap={16}></Gap>
<Field
name='Tanggal Pemeriksaan'
......@@ -216,8 +213,19 @@ export default function NewCaseForm() {
)
}
else{
return (
<>
<Button id="checkedButton" onClick={ () => {
setNewCaseChecked(!(newCaseChecked));
}}>Sudah diperiksa?</Button>
</>
)
}
}
)()}
) () }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment