From c6a2a548069c7d1490b51bd860dcd92bd4130c26 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 27 Jun 2026 15:46:27 +0330 Subject: [PATCH] add about --- src/components/navigation/BottomNavBar.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/navigation/BottomNavBar.tsx b/src/components/navigation/BottomNavBar.tsx index 180c01a..199faa4 100644 --- a/src/components/navigation/BottomNavBar.tsx +++ b/src/components/navigation/BottomNavBar.tsx @@ -4,7 +4,7 @@ import { useGetProfile } from "@/app/[name]/(Profile)/profile/hooks/userProfileD import { glassSurfaceNav } from "@/lib/styles/glassSurface"; import clsx from "clsx"; import type { Icon } from "iconsax-react"; -import { Bag2, Heart, Home2, NotificationStatus, Reserve } from "iconsax-react"; +import { Bag2, Heart, Home2, InfoCircle, Reserve } from "iconsax-react"; import Link from "next/link"; import { useParams, usePathname, useRouter } from "next/navigation"; import { toastLoginRequired } from "../Toast"; @@ -51,7 +51,7 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) { const isHomeActive = pathname === `/${name}`; const isFavoriteActive = pathname.startsWith(`/${name}/favorite`); const isPagerActive = pathname.includes("/pager"); - const isNotificationsActive = pathname.startsWith(`/${name}/notifications`); + const isAboutActive = pathname.startsWith(`/${name}/about`); const isCartActive = pathname.startsWith(`/${name}/cart`); const handleFavoritesClick = (e: React.MouseEvent) => { @@ -64,21 +64,12 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) { } }; - const handleNotificationClick = (e: React.MouseEvent) => { - e.preventDefault(); - if (isSuccess) { - router.push(`/${name}/notifications`); - } else { - toastLoginRequired(() => router.push(`/${name}/auth`), "error"); - } - }; - return (
{onPagerClick ? : } - +
);