Skip to content

Commit

Permalink
fix conflicts and fix side nav styling
Browse files Browse the repository at this point in the history
  • Loading branch information
djnunez-aot committed Aug 13, 2024
1 parent 00fb707 commit c52aba2
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions submit-web/src/components/Shared/layout/SideNav/SideNavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from "react";
import {
Box,
Drawer,

Check failure on line 4 in submit-web/src/components/Shared/layout/SideNav/SideNavBar.tsx

View workflow job for this annotation

GitHub Actions / linting (18.x)

'Drawer' is defined but never used
List,
ListItem,
ListItemButton,
Expand All @@ -27,9 +28,14 @@ export default function SideNavBar() {
<div>
<BreadcrumbNav />
<Box
sx={{ overflow: "auto", borderRight: "1px solid #0000001A" }}
width={240}
height={"calc(100vh - 88px)"}
sx={{
overflow: "auto",
borderRight: "1px solid #0000001A",
width: 240,
height: "calc(100vh - 88px)",
zIndex: 0,
position: "static",
}}
>
<List>
{routeMenuItems.map((route) => (
Expand All @@ -51,11 +57,15 @@ export default function SideNavBar() {
backgroundColor:
currentPath === route.path
? alpha(theme.palette.secondary.main, 0.1)
: alpha(theme.palette.primary.light, 0.1),
: theme.palette.primary.light,
borderLeft: `4px solid ${theme.palette.primary.main}`,
}}
>
<span style={{ color: "inherit" }}>{route.name}</span>
<span
style={{ color: alpha(theme.palette.primary.main, 0.8) }}
>
{route.name}
</span>
</ListItemButton>
</Link>
</ListItem>
Expand Down

0 comments on commit c52aba2

Please sign in to comment.