From ca38640b891bca730fb2aec0e4d11f50b0c3aaf0 Mon Sep 17 00:00:00 2001 From: jahooma Date: Tue, 11 Jan 2022 23:29:50 -0600 Subject: [PATCH] Tweak positioning of add funds button, no green initial probability --- web/components/amount-input.tsx | 31 +++++++++++++++---------------- web/pages/create.tsx | 5 ++--- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 5037f91f..205c68b6 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -57,23 +57,22 @@ export function AmountInput(props: { onChange={(e) => onAmountChange(e.target.value)} /> - {user && ( - - {error ? ( -
- {error} + {user && + (error ? ( +
+ {error} +
+ ) : ( + +
+ Remaining balance
- ) : ( - -
Remaining balance
-
- {formatMoney(Math.floor(remainingBalance))} -
- - )} - {user.balance !== 1000 && } - - )} + +
{formatMoney(Math.floor(remainingBalance))}
+ {user.balance !== 1000 && } +
+ + ))} ) } diff --git a/web/pages/create.tsx b/web/pages/create.tsx index be632c3b..36096990 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -31,7 +31,7 @@ export default function NewContract() { const [question, setQuestion] = useState('') const [description, setDescription] = useState('') - const [ante, setAnte] = useState(0) + const [ante, setAnte] = useState(undefined) const [anteError, setAnteError] = useState() const [closeDate, setCloseDate] = useState('') @@ -111,7 +111,7 @@ export default function NewContract() { Subsidize your market