From 519198e2736fdb01bb07d80094bb4dc38ee28980 Mon Sep 17 00:00:00 2001 From: hiba-aldalaty Date: Fri, 10 Dec 2021 11:09:04 +0000 Subject: [PATCH] Update type for parameter in isSidebarItemWithSubmenuActive function Signed-off-by: hiba-aldalaty --- packages/core-components/src/layout/Sidebar/Items.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core-components/src/layout/Sidebar/Items.tsx b/packages/core-components/src/layout/Sidebar/Items.tsx index 84f399ffa7..8b885134df 100644 --- a/packages/core-components/src/layout/Sidebar/Items.tsx +++ b/packages/core-components/src/layout/Sidebar/Items.tsx @@ -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( function isSidebarItemWithSubmenuActive( submenu: ReactNode, - currentLocation: any, + currentLocation: Location, ) { // Item is active if any of submenu items have active paths const toPathnames: string[] = [];