From e04b8adb3b0fa500d1e2ad4c911d29c1463b811f Mon Sep 17 00:00:00 2001 From: Your name Date: Tue, 28 Mar 2023 12:08:17 +0100 Subject: [PATCH] fix: button changes tabs `onClick` --- src/components/inc/GalleryTabs.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/inc/GalleryTabs.tsx b/src/components/inc/GalleryTabs.tsx index 86e0fcc..7dfdc8f 100644 --- a/src/components/inc/GalleryTabs.tsx +++ b/src/components/inc/GalleryTabs.tsx @@ -47,8 +47,13 @@ const GalleryTabs = () => { {galleryTabs.map(({ value, name }) => { return ( - - setActiveTab(value)}> + setActiveTab(value)} + asChild + > + {name} {value === activeTab && (