p6/8 done

This commit is contained in:
2026-04-14 23:29:51 +10:00
parent d7c5eedee5
commit 189449a28a
5 changed files with 184 additions and 9 deletions

View File

@@ -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>