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[] = [];