Skip to content

Commit f8b8207

Browse files
committed
Switch to legacy navigation
1 parent d28a176 commit f8b8207

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/_common/AppSidebar/AppSidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Typography from '@material-ui/core/Typography'
66

77
import BaseLogo from '_common/BaseLogo'
88
import SidebarNav from './SidebarNav'
9+
import SidebarNavRecursive from './SidebarNavRecursive'
910

1011
export type AppSidebarProps = {
1112
isCollapsed?: boolean
@@ -40,7 +41,8 @@ const Sidebar: React.FC<AppSidebarProps> = (props) => {
4041
</Typography>
4142
</Link>
4243
</div>
43-
<SidebarNav />
44+
{/* <SidebarNav /> */}
45+
<SidebarNavRecursive />
4446
</div>
4547
</aside>
4648
)

src/_common/AppSidebar/SidebarNavRecursive/NavItem.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,12 @@ const useStyles = makeStyles((theme) =>
316316
background: 'rgba(0, 0, 0, 0.08)',
317317
},
318318
navItem: {
319+
color: '#fff',
319320
position: 'relative',
320321
transition: 'background .23s ease',
322+
'& a': {
323+
color: 'inherit',
324+
},
321325
'&.active:not(.open)': {
322326
color: theme.palette.primary.main,
323327
// background: 'rgba(0, 0, 0, 0.08)',

0 commit comments

Comments
 (0)