diff --git a/frontend/application/components/Header.tsx b/frontend/application/components/Header.tsx
index 412013c2..cd152e7f 100644
--- a/frontend/application/components/Header.tsx
+++ b/frontend/application/components/Header.tsx
@@ -2,6 +2,7 @@
import React, { useState, useRef, useEffect } from "react";
import { Search, ChevronDown, Menu, X, Pill, ShieldCheck, HeartPulse, Sparkles, ShoppingBag, User, PlusCircle, Check, Building2, LogIn, Wallet, LogOut, MapPin, FileHeart, Dog, Cat } from "lucide-react";
import { motion, AnimatePresence } from "motion/react";
+import Link from "next/link";
import { useCartStore } from "../lib/store/cartStore";
import { usePetStore } from "../lib/store/usePetStore";
import { useUserStore } from "../lib/store/userStore";
@@ -110,19 +111,17 @@ export default function Header({
{/* Logo Section */}
-
{
- onNavigate("home");
- setIsMobileMenuOpen(false);
- }}
+ onClick={() => setIsMobileMenuOpen(false)}
>
C
Canina {getText('brand_name_fa', "ایران")}
{getText('brand_subtitle', "نماینده رسمی Canina Pharma GmbH آلمان")}
-
+
{/* Navigation Items */}
@@ -146,32 +145,27 @@ export default function Header({
className="absolute top-[80%] right-0 w-[640px] bg-white border border-medical-gray-100 shadow-2xl rounded-[2.5rem] p-10 grid grid-cols-2 gap-10 z-50 pointer-events-auto"
>
{MENU_ITEMS.map((item, idx) => (
- {
- onShopNavigate(item.id);
- setIsMegaMenuOpen(false);
- }}
- >
-
+
+
setIsMegaMenuOpen(false)}
+ className="flex items-center gap-4 mb-4 cursor-pointer block"
+ >
{item.icon}
{item.title}
-
+
{item.solutions.map((sol, sIdx) => (
- - {
- e.stopPropagation();
- onShopNavigate(item.id, sol);
- setIsMegaMenuOpen(false);
- }}
- >
- {sol}
+
-
+ setIsMegaMenuOpen(false)}
+ >
+ {sol}
+
))}
@@ -183,18 +177,18 @@ export default function Header({
{[
- { id: 'shop', label: getText('nav_products', 'محصولات تخصصی'), action: () => onShopNavigate() },
- { id: 'wiki', label: getText('nav_wiki', 'دانشنامه علمی'), action: () => onNavigate('wiki') },
- { id: 'blog', label: getText('nav_blog', 'مجله سلامت پت'), action: () => onNavigate('blog') },
- { id: 'profile', label: getText('nav_pet_profiles', 'شناسنامه پتها'), action: () => onNavigate({ view: 'profile', subview: 'index' }) }
+ { id: 'shop', label: getText('nav_products', 'محصولات تخصصی'), href: '/shop' },
+ { id: 'wiki', label: getText('nav_wiki', 'دانشنامه علمی'), href: '/wiki' },
+ { id: 'blog', label: getText('nav_blog', 'مجله سلامت پت'), href: '/blog' },
+ { id: 'profile', label: getText('nav_pet_profiles', 'شناسنامه پتها'), href: '/profile' }
].map((item) => (
-
+
))}
@@ -405,10 +399,10 @@ export default function Header({
dir="rtl"
>
-
+
setIsMobileMenuOpen(false)}>
C
Canina
-
+