Add categories into all products page and complete translation of that page

This commit is contained in:
Daniele Pancottini
2023-02-05 13:07:25 +01:00
parent 59f6c63ce3
commit c211bff2ad
7 changed files with 115 additions and 158 deletions

View File

@@ -18,20 +18,11 @@ interface NavbarProps {
}
const Navbar: FC<NavbarProps> = ({ links }) => {
const {
isOpen: isOpenDrawer,
onOpen: onOpenDrawer,
onClose: onCloseDrawer,
} = useDisclosure()
const { locale, pathname } = useRouter()
return (
<>
<NavBarFiltersDrawer
onClose={onCloseDrawer}
isOpen={isOpenDrawer}
></NavBarFiltersDrawer>
<NavbarRoot>
<Container clean className="mx-auto max-w-8xl px-6">
<div className={s.nav}>
@@ -49,13 +40,7 @@ const Navbar: FC<NavbarProps> = ({ links }) => {
</Link>
{links?.map((l) => (
<Link href={l.href} key={l.href}>
{l.label === 'Categories' || l.label === 'Categorie' ? (
<a onClick={onOpenDrawer} className={s.link}>
{l.label}
</a>
) : (
<a className={s.link}>{l.label}</a>
)}
<a className={s.link}>{l.label}</a>
</Link>
))}
</nav>