feat(cms-builder-videos-hydration-catalog): resolve IDE Prisma types, fix Header hydration error, add Media Upload & Aparat embed to Admin Videos, fix Catalog scrollbar/spacing, and overhaul CMS into section-by-section Visual Page Builder
This commit is contained in:
1 parent
2b1bd9efcb
commit
3e9fffe71f
7 files changed
+419
-146
No files matched your search
@@ -78,6 +78,10 @@ export default function Header({
|
||||
]);
|
||||
|
||||
const petMenuRef = useRef<HTMLDivElement>(null);
|
||||
const [isMounted, setIsMounted] = useState(false);
|
||||
useEffect(() => {
|
||||
setIsMounted(true);
|
||||
}, []);
|
||||
const { getTotalItems } = useCartStore();
|
||||
const { pets, activePetId, setActivePet, getActivePet } = usePetStore();
|
||||
const { role, isLoggedIn, logout, profile } = useUserStore();
|
||||
@@ -217,7 +221,7 @@ export default function Header({
|
||||
>
|
||||
<ShoppingBag className="w-4 h-4" />
|
||||
<span className="hidden sm:inline">سبد خرید</span>
|
||||
{getTotalItems() > 0 && (
|
||||
{isMounted && getTotalItems() > 0 && (
|
||||
<span className="w-5 h-5 bg-canina-gold text-canina-dark rounded-full text-[10px] font-black flex items-center justify-center">
|
||||
{getTotalItems()}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user