From 16b222a22ea92698826ca749f3190f02eff227e2 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sun, 28 Jul 2024 18:24:16 -0500 Subject: [PATCH] use actions --- components/product/gallery.tsx | 10 +-- components/product/variant-selector.tsx | 90 +++++++++++++------------ 2 files changed, 51 insertions(+), 49 deletions(-) diff --git a/components/product/gallery.tsx b/components/product/gallery.tsx index f54d6015c..3bbb8fd6d 100644 --- a/components/product/gallery.tsx +++ b/components/product/gallery.tsx @@ -16,7 +16,7 @@ export function Gallery({ images }: { images: { src: string; altText: string }[] 'h-full px-6 transition-all ease-in-out hover:scale-110 hover:text-black dark:hover:text-white flex items-center justify-center'; return ( - <> +
{images[imageIndex] && (
- ); - })} - - + return ( + + ); + })} + + + )); }