From 7fbecbc1022e99cfe97ceb808dbfea27b0c3d676 Mon Sep 17 00:00:00 2001 From: jahooma Date: Mon, 10 Jan 2022 21:41:42 -0600 Subject: [PATCH] Extract bet amount input to component. --- web/components/add-funds-button.tsx | 2 +- web/components/amount-input.tsx | 79 +++++++++++++++++++++++++++++ web/components/bet-panel.tsx | 62 +++++----------------- web/pages/create.tsx | 51 +++++-------------- 4 files changed, 107 insertions(+), 87 deletions(-) create mode 100644 web/components/amount-input.tsx diff --git a/web/components/add-funds-button.tsx b/web/components/add-funds-button.tsx index 3c70604e..5fecde73 100644 --- a/web/components/add-funds-button.tsx +++ b/web/components/add-funds-button.tsx @@ -18,7 +18,7 @@ export function AddFundsButton(props: { className?: string }) {