p6/8 done
This commit is contained in:
@@ -77,9 +77,11 @@ function NavBar({ active }: ComponentProps) {
|
||||
Список зданий
|
||||
</Button>
|
||||
</Link>
|
||||
<Button variant={active == '3' ? 'contained' : 'text'} color="info" size="medium">
|
||||
Контакты
|
||||
</Button>
|
||||
<Link to="/chart">
|
||||
<Button variant={active == '3' ? 'contained' : 'text'} color="info" size="medium">
|
||||
Контакты
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
</Box>
|
||||
<Box sx={{ display: { xs: 'flex', md: 'none' } }}>
|
||||
@@ -97,13 +99,15 @@ function NavBar({ active }: ComponentProps) {
|
||||
</IconButton>
|
||||
</Box>
|
||||
<MenuList>
|
||||
<Link to="/">
|
||||
<Link style={{ textDecoration: 'none' }} to="/">
|
||||
<StyledMenuItem selected={active == '1'}> Главная </StyledMenuItem>
|
||||
</Link>
|
||||
<Link to="/list">
|
||||
<Link style={{ textDecoration: 'none' }} to="/list">
|
||||
<StyledMenuItem selected={active == '2'}>Список зданий</StyledMenuItem>
|
||||
</Link>
|
||||
<StyledMenuItem selected={active == '3'}>Контакты</StyledMenuItem>
|
||||
<Link style={{ textDecoration: 'none' }} to="/chart">
|
||||
<StyledMenuItem selected={active == '3'}>Диаграммы</StyledMenuItem>
|
||||
</Link>
|
||||
</MenuList>
|
||||
</Drawer>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user