From c6e5e04e656e1889468c896c26ceeaffff8374f6 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 4 Oct 2022 08:02:20 -0600 Subject: [PATCH] Convert confirmation daisy buttons to tailwind --- web/components/bets-list.tsx | 2 +- web/components/confirmation-button.tsx | 25 +++++++------------ .../contract/contract-report-resolution.tsx | 8 ------ web/components/groups/create-group-button.tsx | 7 ++---- web/components/groups/group-selector.tsx | 2 +- web/components/numeric-resolution-panel.tsx | 8 ------ .../warning-confirmation-button.tsx | 4 +-- web/pages/profile.tsx | 1 - 8 files changed, 15 insertions(+), 42 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index c2773741..247bb63b 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -612,7 +612,7 @@ function SellButton(props: { label: 'Sell', disabled: isSubmitting, }} - submitBtn={{ className: 'btn-primary', label: 'Sell' }} + submitBtn={{ label: 'Sell', color: 'green' }} onSubmit={async () => { setIsSubmitting(true) await sellBet({ contractId: contract.id, betId: bet.id }) diff --git a/web/components/confirmation-button.tsx b/web/components/confirmation-button.tsx index e0f7efd8..ded155f8 100644 --- a/web/components/confirmation-button.tsx +++ b/web/components/confirmation-button.tsx @@ -16,11 +16,11 @@ export function ConfirmationButton(props: { } cancelBtn?: { label?: string - className?: string + color?: ColorType } submitBtn?: { label?: string - className?: string + color?: ColorType isSubmitting?: boolean } children: ReactNode @@ -53,14 +53,14 @@ export function ConfirmationButton(props: { {children} -
updateOpen(false)} > {cancelBtn?.label ?? 'Cancel'} -
+