[WEB-4807] fix: workspace menu item highlight #7677
This commit is contained in:
parent
4293892178
commit
7c1bbf4a6f
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ export const WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS: Record<string, IWorkspac
|
||||||
labelTranslationKey: "projects",
|
labelTranslationKey: "projects",
|
||||||
href: `/projects/`,
|
href: `/projects/`,
|
||||||
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
|
access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],
|
||||||
highlight: (pathname: string, url: string) => pathname.includes(url),
|
highlight: (pathname: string, url: string) => pathname === url,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue