From 3f13e1a4e5d6019ffce307cf4e70238dd647c3d5 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Tue, 16 Aug 2022 21:23:39 -0700 Subject: [PATCH] Replace bet modal in embed with inline betting - Also simplifies graph height calculation --- web/components/amount-input.tsx | 4 +- web/components/bet-inline.tsx | 86 +++++++++++++++++++ web/pages/embed/[username]/[contractSlug].tsx | 49 +++++------ 3 files changed, 108 insertions(+), 31 deletions(-) create mode 100644 web/components/bet-inline.tsx diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 426a9371..9c72242f 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -37,7 +37,7 @@ export function AmountInput(props: { return ( -