change(ui): assist stats route

This commit is contained in:
Shekar Siri 2023-11-03 15:42:27 +01:00
parent 2533dc7e23
commit aab4011b2a
3 changed files with 4 additions and 3 deletions

View file

@ -135,9 +135,10 @@ function SideMenu(props: Props) {
const isMenuItemActive = (key: string) => {
const { pathname } = location;
const activeRoute = menuRoutes[key];
if (activeRoute && !key.includes('exit')) {
const route = activeRoute();
return pathname.startsWith(route);
return pathname === route;
}
return false;
};

View file

@ -44,7 +44,7 @@ export const enum MENU {
NOTES = 'notes',
LIVE_SESSIONS = 'live-sessions',
RECORDINGS = 'recordings',
STATS = 'stats',
STATS = 'assist-stats',
DASHBOARDS = 'dashboards',
CARDS = 'cards',
FUNNELS = 'funnels',

View file

@ -95,7 +95,7 @@ export const fflagRead = (id = ':fflagId', hash?: string | number): string => ha
export const notes = (params?: Record<string, any>): string => queried('/notes', params);
export const bookmarks = (params?: Record<string, any>): string => queried('/bookmarks', params);
export const assist = (params?: Record<string, any>): string => queried('/assist', params);
export const assistStats = (params?: Record<string, any>): string => queried('/cobrowse-stats', params);
export const assistStats = (params?: Record<string, any>): string => queried('/assist-stats', params);
export const recordings = (params?: Record<string, any>): string => queried('/recordings', params);
export const multiviewIndex = (params?: Record<string, any>): string => queried('/multiview', params);
export const multiview = (sessionsQuery = ':sessionsquery', hash?: string | number): string =>