Добавлены переходы в нижней панели навигации (#44)
This commit is contained in:
@ -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"
|
||||||
>
|
>
|
||||||
<MoveToInboxIcon />
|
<NavLink to={ROUTES.CHAOS_BOX}>
|
||||||
|
<MoveToInboxIcon />
|
||||||
|
</NavLink>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
edge="end"
|
edge="end"
|
||||||
color="inherit"
|
color="inherit"
|
||||||
>
|
>
|
||||||
<ListAltIcon />
|
<NavLink to={ROUTES.PROJECTS}>
|
||||||
|
<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"
|
||||||
>
|
>
|
||||||
<CalendarTodayIcon />
|
<NavLink to={ROUTES.CALENDAR}>
|
||||||
|
<CalendarTodayIcon />
|
||||||
|
</NavLink>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
edge="end"
|
edge="end"
|
||||||
|
|||||||
Reference in New Issue
Block a user