bins page now has the add bin button
This commit is contained in:
parent
429f990b41
commit
cd972409b2
15 changed files with 134331 additions and 7 deletions
|
|
@ -76,6 +76,8 @@ import { describeMeasurement } from "pbHelpers/MeasurementDescriber";
|
|||
import { green, yellow } from "@mui/material/colors";
|
||||
import { makeStyles } from "@mui/styles";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import BinSettings from "bin/BinSettings";
|
||||
import AddBinFab from "bin/AddBinFab";
|
||||
// import { useHistory } from "react-router";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
|
|
@ -736,12 +738,12 @@ export default function Bins(props: Props) {
|
|||
setAddBinOpen(false);
|
||||
}}
|
||||
disableAutoFocusItem>
|
||||
{/* <MenuItem onClick={() => setAddBinOpen(true)} aria-label="Create Bin" button dense>
|
||||
<MenuItem onClick={() => setAddBinOpen(true)} aria-label="Create Bin" dense>
|
||||
<ListItemIcon>
|
||||
<LibraryAdd className={classes.green} />
|
||||
</ListItemIcon>
|
||||
<ListItemText secondary="Create Bin" />
|
||||
</MenuItem> */}
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
);
|
||||
};
|
||||
|
|
@ -1362,7 +1364,7 @@ export default function Bins(props: Props) {
|
|||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
{/* <BinSettings
|
||||
<BinSettings
|
||||
mode="add"
|
||||
canEdit={true}
|
||||
open={addBinOpen}
|
||||
|
|
@ -1376,7 +1378,7 @@ export default function Bins(props: Props) {
|
|||
}
|
||||
}}
|
||||
/>
|
||||
<GrainBagSettings
|
||||
{/* <GrainBagSettings
|
||||
open={addBagOpen}
|
||||
close={() => {
|
||||
setAddBagOpen(false);
|
||||
|
|
@ -1391,7 +1393,7 @@ export default function Bins(props: Props) {
|
|||
requiredUrlAffix={"bins"}
|
||||
/> */}
|
||||
{binMenu()}
|
||||
{/* <AddBinFab onClick={() => setAddBinOpen(true)} pulse={binsTotal < 1 && !allLoading} /> */}
|
||||
<AddBinFab onClick={() => setAddBinOpen(true)} pulse={binsTotal < 1 && !allLoading} />
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue