diff --git a/components/cms-modern/Navigation/Navigation.tsx b/components/cms-modern/Navigation/Navigation.tsx index 345208d2..a9c37b3d 100644 --- a/components/cms-modern/Navigation/Navigation.tsx +++ b/components/cms-modern/Navigation/Navigation.tsx @@ -16,6 +16,7 @@ const Navigation = ({ pages, style }: NavigationProps) => { const { navigationToggle, toggleNavigation } = useUI(); const [selectedMenuKey, setSelectedMenuKey] = useState(null); const router = useRouter(); + const vse = router.query.vse; const isRouteActive = (href: string | undefined, category: any): boolean => { // !!using the first word in the category slug as the current category // => full path should be present in slugs, and 1st level category slug shouldn't contain '-' @@ -61,52 +62,57 @@ const Navigation = ({ pages, style }: NavigationProps) => { setSelectedMenuKey(null); }; + const itemType = (type: string) => { + switch (type) { + case 'ecommerce-category-generated': + return 'Commerce Item'; + case 'category': + return 'CMS Override Item'; + default: + return 'CMS Item'; + } + }; + return (