Skip to content

Commit

Permalink
feat: #1917 Fix menu issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vu Nguyen committed Jul 13, 2020
1 parent f4d71d6 commit dbbec14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/developer-portal/src/components/ui/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const generateMenuConfig = (location: Location<any>): MenuConfig => {
},
{
title: 'Analytics',
key: 'DEVELOPER_ANALYTICS',
key: 'ANALYTICS',
url: Routes.ANALYTICS,
type: 'PRIMARY',
icon: <FaChartBar className="nav-item-icon" />,
Expand Down Expand Up @@ -97,7 +97,7 @@ export const logout = ({ dispatch, authLogout }: { dispatch: Dispatch; authLogou
export const Menu: React.FunctionComponent<MenuProps> = () => {
const location = useLocation()
const menuConfigs = generateMenuConfig(location)
return <Sidebar {...menuConfigs['DEVELOPER']} location={location} />
return <Sidebar {...menuConfigs} location={location} />
}

export default Menu

0 comments on commit dbbec14

Please sign in to comment.