From da8bee2be99a3b0f9c1ab167e9f22f304b78e923 Mon Sep 17 00:00:00 2001 From: wil Date: Tue, 26 Mar 2024 14:31:00 -0400 Subject: [PATCH] styling update --- app/components/ItemPicker.tsx | 17 +++++++++++++- app/components/Textarea.tsx | 9 +++++++- .../comps/SidePanelTabs/TabStyling.tsx | 23 ++++++++++++++----- 3 files changed, 41 insertions(+), 8 deletions(-) diff --git a/app/components/ItemPicker.tsx b/app/components/ItemPicker.tsx index 90eae68411..a0949916ec 100644 --- a/app/components/ItemPicker.tsx +++ b/app/components/ItemPicker.tsx @@ -1,16 +1,31 @@ +import { twMerge } from "tailwind-merge"; import { H4 } from "."; + interface ItemPickerProps extends React.ImgHTMLAttributes { label: string + selected: boolean; + onSelected : (val:string)=>void; } export const ItemPicker = ({ label, + selected = false, + onSelected, ...imgProps }:ItemPickerProps) => { + + const handleSelected = ()=>{ + onSelected(label); + }; + return ( -
+
+

{label}

) diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index f9ca528ab9..3b069b39ee 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -7,11 +7,18 @@ export const Textarea = ({ }:TextareaHTMLAttributes) => { return(