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
|
<RadioGroup
|
||||||
aria-labelledby="demo-radio-buttons-group-label"
|
aria-labelledby="demo-radio-buttons-group-label"
|
||||||
value={item.status}
|
value={item.status}
|
||||||
defaultValue="WORKING"
|
defaultValue="Working"
|
||||||
name="radio-buttons-group"
|
name="radio-buttons-group"
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setItem({ ...item, status: e.target.value });
|
setItem({ ...item, status: e.target.value });
|
||||||
|
@ -142,29 +142,17 @@ export default function AddItemModal() {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="WORKING"
|
value="Working"
|
||||||
control={<Radio />}
|
control={<Radio />}
|
||||||
label="Working"
|
label="Working"
|
||||||
style={styles.text_dark}
|
style={styles.text_dark}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="BROKEN"
|
value="Broken"
|
||||||
control={<Radio />}
|
control={<Radio />}
|
||||||
label="Broken"
|
label="Broken"
|
||||||
style={styles.text_dark}
|
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>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
|
@ -207,7 +207,7 @@ export default function EditItemInstanceModal(props: {
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
aria-labelledby="demo-radio-buttons-group-label"
|
aria-labelledby="demo-radio-buttons-group-label"
|
||||||
value={item.status}
|
value={item.status}
|
||||||
defaultValue="WORKING"
|
defaultValue="Working"
|
||||||
name="radio-buttons-group"
|
name="radio-buttons-group"
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setItem({ ...item, status: e.target.value });
|
setItem({ ...item, status: e.target.value });
|
||||||
|
@ -221,29 +221,17 @@ export default function EditItemInstanceModal(props: {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="WORKING"
|
value="Working"
|
||||||
control={<Radio />}
|
control={<Radio />}
|
||||||
label="Working"
|
label="Working"
|
||||||
style={styles.text_dark}
|
style={styles.text_dark}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="BROKEN"
|
value="Broken"
|
||||||
control={<Radio />}
|
control={<Radio />}
|
||||||
label="Broken"
|
label="Broken"
|
||||||
style={styles.text_dark}
|
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>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
Loading…
Reference in a new issue