add header icon divider
This commit is contained in:
1 parent
bc44a3baeb
commit
3b6b7a1e5d
1 file changed
+11
-13
@@ -92,7 +92,7 @@ export const Sidebar = () => {
|
|||||||
pt={theme.spacing(LAYOUT.MD)}
|
pt={theme.spacing(LAYOUT.MD)}
|
||||||
pb={theme.spacing(LAYOUT.MD)}
|
pb={theme.spacing(LAYOUT.MD)}
|
||||||
/>
|
/>
|
||||||
{menu.map((group, groupIndex) => (
|
{menu.map((group) => (
|
||||||
<Box key={group.group}>
|
<Box key={group.group}>
|
||||||
<Box
|
<Box
|
||||||
position="relative"
|
position="relative"
|
||||||
@@ -114,18 +114,16 @@ export const Sidebar = () => {
|
|||||||
>
|
>
|
||||||
{group.group}
|
{group.group}
|
||||||
</Typography>
|
</Typography>
|
||||||
{groupIndex > 0 && (
|
<Divider
|
||||||
<Divider
|
sx={{
|
||||||
sx={{
|
position: "absolute",
|
||||||
position: "absolute",
|
top: "50%",
|
||||||
top: "50%",
|
left: 0,
|
||||||
left: 0,
|
right: 0,
|
||||||
right: 0,
|
opacity: collapsed ? 1 : 0,
|
||||||
opacity: collapsed ? 1 : 0,
|
transition: `opacity ${transitionTiming}`,
|
||||||
transition: `opacity ${transitionTiming}`,
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Box>
|
</Box>
|
||||||
{group.items.map((item) => {
|
{group.items.map((item) => {
|
||||||
const selected = location.pathname.startsWith(`/${item.path}`);
|
const selected = location.pathname.startsWith(`/${item.path}`);
|
||||||
|
|||||||
Reference in new issue
Block a user