This commit is contained in:
hamid zarghami
2026-02-14 10:01:49 +03:30
parent bb33c2b516
commit 4aa28eea59
10 changed files with 5 additions and 215 deletions
+3 -19
View File
@@ -4,7 +4,7 @@ import React from 'react'
import Link from 'next/link'
import BottomNavLink from './BottomNavLink'
import BottomNavHighlightLink from './BottomNavLinkBig'
import PagerIcon from '../icons/PagerIcon'
import ReceiptIcon from '../icons/ReceiptIcon'
import BagIcon from '../icons/BagIcon'
import HeartIcon from '../icons/HeartIcon'
import { useParams, usePathname, useRouter } from 'next/navigation'
@@ -16,11 +16,7 @@ import clsx from 'clsx';
import { useGetProfile } from '@/app/[name]/(Profile)/profile/hooks/userProfileData';
import { toast } from '../Toast';
type BottomNavBarProps = {
onPagerClick?: () => void;
};
function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
function BottomNavBar() {
const params = useParams();
const { name } = params;
@@ -81,19 +77,7 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
icon={<BagIcon width={20} height={20} />}
value={t('Cart')}
/>
{onPagerClick ? (
<button
onClick={onPagerClick}
className="flex flex-col justify-arround items-center gap-[5px] text-primary pointer-events-auto **:stroke-primary dark:text-white dark:**:stroke-white"
>
<PagerIcon width={20} height={20} />
<span className="text-xs2 dark:text-white">
{t('Pager')}
</span>
</button>
) : (
<BottomNavLink href={`/${name}/pager`} icon={<PagerIcon width={20} height={20} />} value={t('Pager')} />
)}
<BottomNavLink href={`/${name}/order/history`} icon={<ReceiptIcon width={20} height={20} />} value={t('Orders')} />
<BottomNavHighlightLink
href={`/${name}`}
icon={