Skip to content

Commit 3cbccfa

Browse files
committed
fix(navigation): fix display of links on mobile
1 parent 176c268 commit 3cbccfa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

layouts/navigation/MobileNavMenu.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,11 @@ export const MobileNavMenu = ({ links = true }: MobileNavMenuProps) => {
7575
</List>
7676
</Grid>
7777
)}
78-
7978
{isAuthorized && links && (
8079
<Grid item xs={12}>
8180
<Divider />
8281
</Grid>
8382
)}
84-
8583
<Grid item xs={12}>
8684
{isAuthorized && (
8785
<>
@@ -92,11 +90,9 @@ export const MobileNavMenu = ({ links = true }: MobileNavMenuProps) => {
9290
</>
9391
)}
9492
</Grid>
95-
9693
<Grid item xs={12}>
9794
<Divider />
9895
</Grid>
99-
10096
<Grid item xs={12}>
10197
<UserMenuContent />
10298
</Grid>

layouts/navigation/NavBarContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const NavBarContents = () => {
8383
<>
8484
{biggerThanSm && <NavLinks linkWidth={100} />}
8585
{settingsButton}
86-
<MobileNavMenu links={false} />
86+
<MobileNavMenu links={!biggerThanSm} />
8787
</>
8888
);
8989
}

0 commit comments

Comments
 (0)