fix(ui) - assist menu status
This commit is contained in:
parent
9d7b48c623
commit
28ab64595f
1 changed files with 7 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
assist,
|
||||
dashboard,
|
||||
withSiteId,
|
||||
|
||||
recordings,
|
||||
} from 'App/routes';
|
||||
import SiteDropdown from '../SiteDropdown';
|
||||
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
||||
|
|
@ -16,6 +16,7 @@ const DASHBOARD_PATH = dashboard();
|
|||
const METRICS_PATH = metrics();
|
||||
const SESSIONS_PATH = sessions();
|
||||
const ASSIST_PATH = assist();
|
||||
const RECORDINGS_PATH = recordings();
|
||||
|
||||
interface Props {
|
||||
siteId: any;
|
||||
|
|
@ -47,6 +48,11 @@ function DefaultMenuView(props: Props) {
|
|||
to={withSiteId(ASSIST_PATH, siteId)}
|
||||
className={styles.nav}
|
||||
activeClassName={styles.active}
|
||||
isActive={(_, location) => {
|
||||
return (
|
||||
location.pathname.includes(ASSIST_PATH) || location.pathname.includes(RECORDINGS_PATH)
|
||||
);
|
||||
}}
|
||||
>
|
||||
{'Assist'}
|
||||
</NavLink>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue