Добавлены переходы в нижней панели навигации (#44)

This commit is contained in:
Вигдорова Алина
2021-01-02 17:53:56 +03:00
committed by GitHub
parent ce219b143c
commit 7e7b25a2a8

View File

@ -6,6 +6,8 @@ import AddIcon from '@material-ui/icons/Add';
import MoveToInboxIcon from '@material-ui/icons/MoveToInbox'; import MoveToInboxIcon from '@material-ui/icons/MoveToInbox';
import CalendarTodayIcon from '@material-ui/icons/CalendarToday'; import CalendarTodayIcon from '@material-ui/icons/CalendarToday';
import ListAltIcon from '@material-ui/icons/ListAlt'; import ListAltIcon from '@material-ui/icons/ListAlt';
import {NavLink} from 'react-router-dom';
import {ROUTES} from '_consts/common';
type Props = { type Props = {
trigger: boolean; trigger: boolean;
@ -49,13 +51,17 @@ const BothMenu: React.FC<Props> = ({trigger}) => {
edge="start" edge="start"
color="inherit" color="inherit"
> >
<NavLink to={ROUTES.CHAOS_BOX}>
<MoveToInboxIcon /> <MoveToInboxIcon />
</NavLink>
</IconButton> </IconButton>
<IconButton <IconButton
edge="end" edge="end"
color="inherit" color="inherit"
> >
<NavLink to={ROUTES.PROJECTS}>
<ListAltIcon /> <ListAltIcon />
</NavLink>
</IconButton> </IconButton>
<Fab <Fab
color="secondary" color="secondary"
@ -69,7 +75,9 @@ const BothMenu: React.FC<Props> = ({trigger}) => {
edge="start" edge="start"
color="inherit" color="inherit"
> >
<NavLink to={ROUTES.CALENDAR}>
<CalendarTodayIcon /> <CalendarTodayIcon />
</NavLink>
</IconButton> </IconButton>
<IconButton <IconButton
edge="end" edge="end"