Skip to content

Commit

Permalink
added menu bar back into connect page
Browse files Browse the repository at this point in the history
  • Loading branch information
lauren-mieczkowski committed Jan 19, 2024
1 parent afa4654 commit 8188fbd
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions src/connect/pages/DeviceRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { useUpdateDevice } from "../hooks/useUpdateDevice";
import { useDevices } from "../hooks/useDevices";
import { Device } from "../types/device";
import DeviceForm from "../components/DeviceForm";
import AdminAppBar from "../../admin/components/AdminAppBar.tsx";
import AdminToolbar from "../../admin/components/AdminToolbar.tsx";

// if connecting to device table which is mocked
import { NavLink, Outlet } from "react-router-dom";
// import { useAuth } from "../../auth/contexts/AuthProvider";
Expand Down Expand Up @@ -105,25 +108,28 @@ const DeviceRegistration = () => {

return (
<React.Fragment>
<Typography
component="div"
variant="h2"
>{`Connect`}</Typography>
<Grid item xs={12} md={12} marginTop={3}>
<Box sx={{ mb: 4 }}>
<DeviceForm
onAdd={handleAddDevice}
onClose={handleCloseDeviceDialog}
onUpdate={handleUpdateDevice}
open={openDeviceDialog}
processing={processing}
device={deviceUpdated}
/>
</Box>
<QueryWrapper>
<Outlet />
</QueryWrapper>
</Grid>
<AdminAppBar>
<AdminToolbar />
</AdminAppBar>
<Typography
component="div"
variant="h2"
>{`Connect`}</Typography>
<Grid item xs={12} md={12} marginTop={3}>
<Box sx={{ mb: 4 }}>
<DeviceForm
onAdd={handleAddDevice}
onClose={handleCloseDeviceDialog}
onUpdate={handleUpdateDevice}
open={openDeviceDialog}
processing={processing}
device={deviceUpdated}
/>
</Box>
<QueryWrapper>
<Outlet />
</QueryWrapper>
</Grid>
</React.Fragment>
);
};
Expand Down

0 comments on commit 8188fbd

Please sign in to comment.