From dd197bf18b0029f7156d6a6dc2f72d04248eaeef Mon Sep 17 00:00:00 2001 From: Dhravya Date: Tue, 21 May 2024 22:43:11 -0500 Subject: [PATCH] added hover and border to signal clickability --- apps/web-v2/src/components/ui/cardClick.tsx | 29 +++++++++------------ 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/apps/web-v2/src/components/ui/cardClick.tsx b/apps/web-v2/src/components/ui/cardClick.tsx index 6c2cc364..10fb4a07 100644 --- a/apps/web-v2/src/components/ui/cardClick.tsx +++ b/apps/web-v2/src/components/ui/cardClick.tsx @@ -9,31 +9,26 @@ export const CardClick = ({ handleClickIndex, items, }: { - tab: number, - handleClickIndex: (tab: number)=>void, + tab: number; + handleClickIndex: (tab: number) => void; items: { title: string; description: string; - svg: React.ReactNode + svg: React.ReactNode; }[]; }) => { - return ( -
+
{items.map((item, idx) => (
handleClickIndex(idx)} > {tab === idx && ( )} - +
))}
@@ -57,7 +56,7 @@ export const CardClick = ({ export const Card = ({ title, description, - svg + svg, }: { title: string; description: string; @@ -72,9 +71,7 @@ export const Card = ({
{title}
-
- {description} -
+
{description}
);