Skip to content

Commit

Permalink
Hide cart count in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush259 committed Nov 15, 2024
1 parent 78f12e0 commit b13943c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/nav/NavigationLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function NavigationLink({ linkText, linkTo, setHamActive, icon })
>
{
isLoggedIn && user?.cart && user.cart.length > 0 && linkText === 'MyCart' && <div
className="text-xs text-slate-900 bg-yellow-400 w-4 h-4 flex justify-center items-center rounded-full font-bold absolute translate-x-1/4 -translate-y-[110%]"
className="hidden text-xs text-slate-900 bg-yellow-400 w-4 h-4 md:flex justify-center items-center rounded-full font-bold absolute translate-x-1/4 -translate-y-[110%]"
>
{user.cart.length}
</div>
Expand Down

0 comments on commit b13943c

Please sign in to comment.