From 38aad405691875eb11d2c67b49d2b14ac41f4f21 Mon Sep 17 00:00:00 2001 From: mantikoros <95266179+mantikoros@users.noreply.github.com> Date: Tue, 12 Jul 2022 17:34:10 -0500 Subject: [PATCH] Simplify bet buttons (#644) * mono-button bet row * "bet yes" => "yes" * prettier --- web/components/bet-panel.tsx | 15 +++++++- web/components/bet-row.tsx | 61 ++++++++++++------------------ web/components/limit-bets.tsx | 4 +- web/components/yes-no-selector.tsx | 4 +- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 6279fe2f..91c6fe00 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -109,9 +109,10 @@ export function SimpleBetPanel(props: { contract: CPMMBinaryContract | PseudoNumericContract className?: string selected?: 'YES' | 'NO' + hasShares?: boolean onBetSuccess?: () => void }) { - const { contract, className, selected, onBetSuccess } = props + const { contract, className, selected, hasShares, onBetSuccess } = props const user = useUser() const [isLimitOrder, setIsLimitOrder] = useState(false) @@ -121,7 +122,17 @@ export function SimpleBetPanel(props: { return (