From 39ff692496083f0e7a0603c53f80f195470db4d3 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:14:39 +0000 Subject: [PATCH] Changes --- src/components/MobileBottomNav.tsx | 6 +++++- src/hooks/use-mobile.tsx | 26 ++++++++++++++++++++------ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/components/MobileBottomNav.tsx b/src/components/MobileBottomNav.tsx index 1674718..39efe83 100644 --- a/src/components/MobileBottomNav.tsx +++ b/src/components/MobileBottomNav.tsx @@ -1,11 +1,13 @@ import { Home, Package, ShoppingCart } from 'lucide-react'; import { Link, useLocation } from 'react-router-dom'; import { useCart } from '@/context/CartContext'; +import { useIsMobile } from '@/hooks/use-mobile'; import { cn } from '@/lib/utils'; export function MobileBottomNav() { const location = useLocation(); const { items } = useCart(); + const isMobile = useIsMobile(); const cartCount = items.reduce((sum, item) => sum + item.quantity, 0); const navItems = [ @@ -14,8 +16,10 @@ export function MobileBottomNav() { { to: '#cart', icon: ShoppingCart, label: 'Cart', badge: cartCount }, ]; + if (!isMobile) return null; + return ( -