diff --git a/examples/ecommerce-jewellery-store/src/components/CategoryList.tsx b/examples/ecommerce-jewellery-store/src/components/CategoryList.tsx index 9b1dec41..bcb61b00 100644 --- a/examples/ecommerce-jewellery-store/src/components/CategoryList.tsx +++ b/examples/ecommerce-jewellery-store/src/components/CategoryList.tsx @@ -8,7 +8,8 @@ export const CategoryList: React.FC = ({ data, title, subtitl const navigate = useNavigate(); const onNavigate = (card: CardDescriptor) => { - if (card.collectionText === "AURELIA") { + console.log(card); + if (card.collectionText === `Collection \"AURELIA\"`) { navigate("/category") } } diff --git a/examples/ecommerce-jewellery-store/src/components/Header.tsx b/examples/ecommerce-jewellery-store/src/components/Header.tsx index 29f73493..4f0e31ff 100644 --- a/examples/ecommerce-jewellery-store/src/components/Header.tsx +++ b/examples/ecommerce-jewellery-store/src/components/Header.tsx @@ -1,35 +1,43 @@ -import React from 'react'; -import { Menu, AppBarSpacer } from "@progress/kendo-react-layout"; +import React from "react"; +import { Menu, AppBarSpacer, MenuItem } from "@progress/kendo-react-layout"; import { Button } from "@progress/kendo-react-buttons"; import { SvgIcon } from "@progress/kendo-react-common"; +import { useNavigate } from "react-router-dom"; import { InputPrefix, InputSeparator, TextBox, - Switch + Switch, } from "@progress/kendo-react-inputs"; - -import { searchIcon, userIcon, cartIcon, paletteIcon } from "@progress/kendo-svg-icons"; -import viloraLogo from '@/assets/vilora-logo.png'; -import items from '@/data/items' -import languageItems from '@/data/language-items'; - import { - AppBar, - AppBarSection, -} from "@progress/kendo-react-layout"; + searchIcon, + userIcon, + cartIcon, + paletteIcon, +} from "@progress/kendo-svg-icons"; +import viloraLogo from "@/assets/vilora-logo.png"; +import items from "@/data/items"; +import languageItems from "@/data/language-items"; + +import { AppBar, AppBarSection } from "@progress/kendo-react-layout"; const Header: React.FC = () => { + const navigate = useNavigate(); + return ( <> - - + + Logo - + + @@ -39,8 +47,7 @@ const Header: React.FC = () => { <> - - + @@ -48,7 +55,7 @@ const Header: React.FC = () => { )} style={{ width: 300 }} /> -
+