Skip to content

Commit

Permalink
Merge pull request #33 from thomasKn/prefetch
Browse files Browse the repository at this point in the history
Update variant pills
  • Loading branch information
thomasKn authored Feb 4, 2024
2 parents 8b86442 + 4a60562 commit 674cf2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/product/VariantSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ export function VariantSelector(props: {
{option.values?.map(({isActive, isAvailable, search, value}) => (
<Link
className={cn([
'hover:bg-muted',
!isAvailable && 'opacity-50',
badgeVariants({
variant: isActive ? 'secondary' : 'outline',
}),
!isAvailable && 'opacity-50',
'px-3 py-[.35rem] hover:bg-muted',
])}
key={option.name + value}
prefetch="intent"
prefetch="viewport"
preventScrollReset
replace
to={search}
Expand Down

0 comments on commit 674cf2c

Please sign in to comment.