diff --git a/components/core/Searchbar/Searchbar.tsx b/components/core/Searchbar/Searchbar.tsx index 47aeed316..5f9d52ed6 100644 --- a/components/core/Searchbar/Searchbar.tsx +++ b/components/core/Searchbar/Searchbar.tsx @@ -1,13 +1,14 @@ import cn from 'classnames' import { FC } from 'react' import s from './Searchbar.module.css' - +import { useRouter } from 'next/router' interface Props { className?: string children?: any } const Searchbar: FC = ({ className }) => { + const router = useRouter() return (
= ({ className }) => { className )} > - + { + e.preventDefault() + router.push('/search') + console.log('changing') + }} + />
= ({ product, className }) => { return (
-

+

{product.name}

@@ -102,7 +102,10 @@ const ProductView: FC = ({ product, className }) => {
-
+