Skip to content

Commit

Permalink
feat: set correct link for best selling page
Browse files Browse the repository at this point in the history
  • Loading branch information
pooriaset committed May 4, 2024
1 parent 044f0d7 commit 20f086b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Header/components/BottomSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import { useTranslations } from 'next-intl';
import { Link as NextLink } from '@/navigation';
import { bestSellingSortOption } from '@/static/sortOptions';

const BottomSection = () => {
const t = useTranslations();

const pages = [
{ label: t('header.navigation.products'), href: '/search' },
{ label: t('header.navigation.categories'), href: '/categories' },
{ label: t('header.navigation.promotions'), href: '/best-selling' },
{ label: t('header.navigation.bestSelling'), href: '/promotion-center' },
{
label: t('header.navigation.bestSelling'),
href: `/search?sort=${bestSellingSortOption.key}`,
},
{ label: t('header.navigation.promotions'), href: '/promotion-center' },
];

return (
Expand Down

0 comments on commit 20f086b

Please sign in to comment.