Update type for parameter in isSidebarItemWithSubmenuActive function

Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
hiba-aldalaty
2021-12-10 11:09:04 +00:00
parent 501eb4ea9f
commit 519198e273
@@ -47,6 +47,7 @@ import {
} from './config';
import { SidebarSubmenu } from './SidebarSubmenu';
import { isLocationMatch } from './utils';
import { Location } from 'history';
export type SidebarItemClassKey =
| 'root'
@@ -173,7 +174,7 @@ const useStyles = makeStyles<BackstageTheme>(
function isSidebarItemWithSubmenuActive(
submenu: ReactNode,
currentLocation: any,
currentLocation: Location,
) {
// Item is active if any of submenu items have active paths
const toPathnames: string[] = [];