From d9f702576d87dab5086c122bcd1c0a9775cddb55 Mon Sep 17 00:00:00 2001 From: Adam Bardsley Date: Thu, 21 Nov 2024 16:49:53 +0000 Subject: [PATCH] Colour coded buttons --- components/admin/till.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/components/admin/till.tsx b/components/admin/till.tsx index 67d01404..46fd088d 100644 --- a/components/admin/till.tsx +++ b/components/admin/till.tsx @@ -33,7 +33,12 @@ const Till = ({fullPassFunction,scrollToElement}:{fullPassFunction?:Function,scr const [payments,setPayments] = useState([] as any[]) const [ticket,setTicket] = useState(false as any) const [selectedAccessArray, setSelectedAccessArray] = useState([]) - + + const tillColours = { + TILL1: "bg-chillired-500 text-white", + TILL2: "bg-blue-400 text-white", + TILL3: "bg-gold-400 text-black", + } // const router = useRouter() @@ -216,7 +221,7 @@ const Till = ({fullPassFunction,scrollToElement}:{fullPassFunction?:Function,scr md:grid-cols-4 md:pt-12 md:mx-3 md:text-base "> { ticket ?
{setTicket(false); console.log("Checkin")}}/>
: null } -

{till}

+

{till}

) :
-

Select Till

-
- - - +

Select Till

+
+ + + {/* */}