mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-05-18 12:28:15 +08:00
Adjust CRUD actions according to backend changes
This commit is contained in:
parent
a14b09f2a0
commit
fd1eb8ac3b
6 changed files with 16 additions and 148 deletions
|
@ -17,7 +17,7 @@ import {
|
|||
EquipmentInstanceLogListType,
|
||||
} from "../Types/Types";
|
||||
|
||||
const debug = false;
|
||||
const debug = true;
|
||||
let backendURL;
|
||||
|
||||
if (debug) {
|
||||
|
|
|
@ -86,39 +86,13 @@ export default function AddSKUModal() {
|
|||
<div style={styles.flex_row}>
|
||||
<div style={styles.flex_column}>
|
||||
<FormControlLabel
|
||||
value="PC"
|
||||
value="Glassware"
|
||||
control={<Radio />}
|
||||
label="Workstation"
|
||||
label="Glassware"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="NETWORKING"
|
||||
control={<Radio />}
|
||||
label="Networking"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="CCTV"
|
||||
control={<Radio />}
|
||||
label="CCTV"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
</div>
|
||||
<div style={styles.flex_column}>
|
||||
<FormControlLabel
|
||||
value="FURNITURE"
|
||||
control={<Radio />}
|
||||
label="Furniture"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="PERIPHERALS"
|
||||
control={<Radio />}
|
||||
label="Peripherals"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="MISC"
|
||||
value="Miscellaneous"
|
||||
control={<Radio />}
|
||||
label="Miscellaneous"
|
||||
style={styles.text_dark}
|
||||
|
|
|
@ -197,8 +197,7 @@ export default function EditItemInstanceModal(props: {
|
|||
Associated SKU:
|
||||
</p>
|
||||
<p style={{ ...styles.text_dark, ...styles.text_M }}>
|
||||
{equipment.data?.equipment_name}
|
||||
{" (SKU #" + equipment.data?.equipment + ")"}
|
||||
{equipment.data?.equipment}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -221,39 +221,13 @@ export default function EditSKUModal(props: {
|
|||
<div style={styles.flex_row}>
|
||||
<div style={styles.flex_column}>
|
||||
<FormControlLabel
|
||||
value="PC"
|
||||
value="Glassware"
|
||||
control={<Radio />}
|
||||
label="Workstation"
|
||||
label="Glassware"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="NETWORKING"
|
||||
control={<Radio />}
|
||||
label="Networking"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="CCTV"
|
||||
control={<Radio />}
|
||||
label="CCTV"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
</div>
|
||||
<div style={styles.flex_column}>
|
||||
<FormControlLabel
|
||||
value="FURNITURE"
|
||||
control={<Radio />}
|
||||
label="Furniture"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="PERIPHERALS"
|
||||
control={<Radio />}
|
||||
label="Peripherals"
|
||||
style={styles.text_dark}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="MISC"
|
||||
value="Miscellaneous"
|
||||
control={<Radio />}
|
||||
label="Miscellaneous"
|
||||
style={styles.text_dark}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue