@@ -2,7 +2,6 @@ import type {CartReturn} from '@shopify/hydrogen';
22
33import  { Await ,  Link }  from  'react-router' ; 
44import  { CartForm }  from  '@shopify/hydrogen' ; 
5- import  { cx }  from  'class-variance-authority' ; 
65import  { Suspense ,  useCallback ,  useEffect ,  useMemo ,  useState }  from  'react' ; 
76
87import  { useCartFetchers }  from  '~/hooks/use-cart-fetchers' ; 
@@ -73,16 +72,16 @@ function Badge(props: {cart?: CartReturn | null; count: number}) {
7372
7473  const  BadgeCounter  =  useMemo ( 
7574    ( )  =>  ( 
76-       < span  className = " relative" > 
75+       < span  className = { cn ( ' relative' ,   count   >   0   &&   'mr-4' ) } > 
7776        < span  className = "sr-only" > { themeContent ?. cart ?. heading } </ span > 
7877        < IconBag  className = "size-6"  /> 
7978        { count  >  0  &&  ( 
8079          < div 
81-             className = { cx ( [ 
80+             className = { cn ( [ 
8281              'absolute top-[-4px] right-[-12px] flex items-center justify-center' , 
8382              'bg-foreground text-background transition-colors' , 
8483              'group-active:bg-accent-foreground group-active:text-accent' , 
85-               'notouch :group-hover:bg-accent-foreground notouch :group-hover:text-accent' , 
84+               'pointer-fine :group-hover:bg-accent-foreground pointer-fine :group-hover:text-accent' , 
8685              'aspect-square h-auto min-w-[1.35rem] rounded-full p-1' , 
8786              'text-center text-[.7rem] leading-[0] subpixel-antialiased' , 
8887            ] ) } 
0 commit comments