Добавлена навигация в нижней панели (#46)
This commit is contained in:
@ -5,6 +5,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';
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) =>
|
const useStyles = makeStyles((theme: Theme) =>
|
||||||
createStyles({
|
createStyles({
|
||||||
@ -48,13 +50,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"
|
||||||
@ -68,7 +74,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user