Adjust item instance statuses

This commit is contained in:
Keannu Bernasol 2023-12-09 09:48:27 +08:00
parent fd1eb8ac3b
commit 0e4c1b9f31
2 changed files with 6 additions and 30 deletions

View file

@ -128,7 +128,7 @@ export default function AddItemModal() {
<RadioGroup
aria-labelledby="demo-radio-buttons-group-label"
value={item.status}
defaultValue="WORKING"
defaultValue="Working"
name="radio-buttons-group"
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setItem({ ...item, status: e.target.value });
@ -142,29 +142,17 @@ export default function AddItemModal() {
}}
>
<FormControlLabel
value="WORKING"
value="Working"
control={<Radio />}
label="Working"
style={styles.text_dark}
/>
<FormControlLabel
value="BROKEN"
value="Broken"
control={<Radio />}
label="Broken"
style={styles.text_dark}
/>
<FormControlLabel
value="MAINTENANCE"
control={<Radio />}
label="Under Maintenance"
style={styles.text_dark}
/>
<FormControlLabel
value="DECOMISSIONED"
control={<Radio />}
label="Decomissioned"
style={styles.text_dark}
/>
</div>
</RadioGroup>
</FormControl>

View file

@ -207,7 +207,7 @@ export default function EditItemInstanceModal(props: {
<RadioGroup
aria-labelledby="demo-radio-buttons-group-label"
value={item.status}
defaultValue="WORKING"
defaultValue="Working"
name="radio-buttons-group"
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setItem({ ...item, status: e.target.value });
@ -221,29 +221,17 @@ export default function EditItemInstanceModal(props: {
}}
>
<FormControlLabel
value="WORKING"
value="Working"
control={<Radio />}
label="Working"
style={styles.text_dark}
/>
<FormControlLabel
value="BROKEN"
value="Broken"
control={<Radio />}
label="Broken"
style={styles.text_dark}
/>
<FormControlLabel
value="MAINTENANCE"
control={<Radio />}
label="Under Maintenance"
style={styles.text_dark}
/>
<FormControlLabel
value="DECOMISSIONED"
control={<Radio />}
label="Decomissioned"
style={styles.text_dark}
/>
</div>
</RadioGroup>
</FormControl>