fix(header): restore getText and store hooks in Header component scope to fix ReferenceError

This commit is contained in:
parsa aghaei committed 2026-07-21 14:20:38 +03:30
1 parent 3e3372d01b
commit d560eb79a3
1 file changed
+7
@@ -73,6 +73,13 @@ export default function Header({
solutions: ["ریزش مو", "خشکی پوست", "خارش", "جرم دندان", "سوزش چشم"]
}
]);
const petMenuRef = useRef<HTMLDivElement>(null);
const { getTotalItems } = useCartStore();
const { pets, activePetId, setActivePet, getActivePet } = usePetStore();
const { role, isLoggedIn, logout, profile } = useUserStore();
const activePet = getActivePet();
const getText = useSettingsStore(state => state.getText);
useEffect(() => {
const loadNavFilters = async () => {