From 750fcdd8d24def1967dcb9797a76989c177b3eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=B3=D0=B4=D0=BE=D1=80=D0=BE=D0=B2=D0=B0=20?= =?UTF-8?q?=D0=90=D0=BB=D0=B8=D0=BD=D0=B0?= <61090329+Metanka@users.noreply.github.com> Date: Wed, 6 Jan 2021 12:06:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B0=D0=B2=D0=B0=D1=82=D0=B0=D1=80=D0=BA=D1=83=20(#5?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/top-menu/TopMenu.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/components/top-menu/TopMenu.tsx b/src/app/components/top-menu/TopMenu.tsx index 44029bf..035be1d 100644 --- a/src/app/components/top-menu/TopMenu.tsx +++ b/src/app/components/top-menu/TopMenu.tsx @@ -1,5 +1,5 @@ import React, {memo, useState} from 'react'; -import {useHistory} from 'react-router-dom'; +import {NavLink, useHistory} from 'react-router-dom'; import {createStyles, makeStyles, Theme} from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; @@ -12,7 +12,7 @@ import SearchIcon from '@material-ui/icons/Search'; import ClickAwayListener from '@material-ui/core/ClickAwayListener'; import {Avatar} from '@material-ui/core'; import {PageType} from '_enums/common'; -import {PAGE_TITLE} from '_consts/common'; +import {PAGE_TITLE, ROUTES} from '_consts/common'; import {usePageType} from '_hooks/usePageType'; import {buildPath} from '_utils/buildPath'; import {LABELS} from '../../consts'; @@ -98,7 +98,9 @@ const TopMenu: React.FC = ({trigger}) => { > {isShowSearch ? '' : title} - + + +