Change about text content and remove regions from navbar

This commit is contained in:
Daniele Pancottini
2023-01-16 10:57:39 +01:00
parent 350390f3b8
commit d90fc561c0
4 changed files with 21 additions and 68 deletions

View File

@@ -43,14 +43,6 @@ export default function NavBarFiltersDrawer(props: {
<DrawerContent>
<DrawerBody>
<Stack mt={5} direction={'column'} spacing={'20'}>
<Box>
<Heading size={'lg'} mb={5}>
{locale === 'it' ? 'Regioni' : 'Regions'}
</Heading>
{regions.map((region) => (
<NavBarFiltersItem key={region.label} {...region} />
))}
</Box>
<Box>
<Heading mb={5} size={'lg'}>
{locale === 'it' ? 'Categorie' : 'Categories'}

View File

@@ -49,7 +49,7 @@ const Navbar: FC<NavbarProps> = ({ links }) => {
</Link>
{links?.map((l) => (
<Link href={l.href} key={l.href}>
{l.label === 'Regions' || l.label === 'Regioni' ? (
{l.label === 'Categories' || l.label === 'Categorie' ? (
<a onClick={onOpenDrawer} className={s.link}>
{l.label}
</a>