Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 180bd1a

Browse files
committed
Made only My Teams use an exact path for sidenav
1 parent cb929e3 commit 180bd1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/Menu/index.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const SubMenu = ({ option }) => {
4141
to={subOption.path}
4242
activeClassName="menu-link-active"
4343
className="menu-link"
44-
exact
4544
>
4645
{subOption.title}
4746
</NavLink>
@@ -63,7 +62,7 @@ const Menu = ({ options, sidebarCollapsed }) => (
6362
to={option.path}
6463
activeClassName="menu-link-active"
6564
className="menu-link"
66-
exact
65+
exact={option.isExact}
6766
>
6867
<img
6968
src={option.activeIcon}

src/constants/apps.js

+2
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ export const APP_CATEGORIES = [
6767
path: '/taas/myteams',
6868
icon: myteamsIcon,
6969
activeIcon: myteamsGreenIcon,
70+
isExact: true,
7071
},
7172
{
7273
title: 'Create New Team',
7374
path: '/taas/myteams/createnewteam',
7475
icon: createTeamIcon,
7576
activeIcon: createTeamGreenIcon,
77+
isExact: false,
7678
},
7779
],
7880
},

0 commit comments

Comments
 (0)