diff --git a/README.md b/README.md index 104f053d..dc5df101 100644 --- a/README.md +++ b/README.md @@ -207,5 +207,6 @@ In your Vercel project browse to Settings --> Environment Variables and edit the - [Contribution Model (fork, PR, etc.)](https://github.com/amplience/dc-cli/blob/master/CONTRIBUTING.md) - [FAQ](docs/FAQ.md) - Upgrades: + - [v5.0.0 Upgrade](docs/v5.0.0-upgrade.md) - [v4.0.0 Upgrade](docs/v4.0.0-upgrade.md) - [v3.0.0 Upgrade](docs/v3.0.0-upgrade.md) 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 (