From 28ab64595f8ce1f9b3452a30a26249b7e6548cb1 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 2 May 2023 13:35:03 +0200 Subject: [PATCH] fix(ui) - assist menu status --- .../components/Header/DefaultMenuView/DefaultMenuView.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Header/DefaultMenuView/DefaultMenuView.tsx b/frontend/app/components/Header/DefaultMenuView/DefaultMenuView.tsx index 8e6a68e58..f5dd644d9 100644 --- a/frontend/app/components/Header/DefaultMenuView/DefaultMenuView.tsx +++ b/frontend/app/components/Header/DefaultMenuView/DefaultMenuView.tsx @@ -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'}