mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Adjust item instance statuses
This commit is contained in:
parent
fd1eb8ac3b
commit
0e4c1b9f31
2 changed files with 6 additions and 30 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue