This commit is contained in:
ingawei 2022-09-28 07:01:11 -07:00
parent fe0c20b220
commit 77ba6e967f
2 changed files with 14 additions and 12 deletions

View File

@ -17,7 +17,6 @@ import { BetSignUpPrompt } from './sign-up-prompt'
import { User } from 'web/lib/firebase/users'
import { SellRow } from './sell-row'
import { useUnfilledBets } from 'web/hooks/use-bets'
import { LimitBets } from './limit-bets'
/** Button that opens BetPanel in a new modal */
export default function BetButton(props: {

View File

@ -415,20 +415,23 @@ export function BuyPanel(props: {
>
Advanced
</button>
<Modal open={seeLimit} setOpen={setSeeLimit} position="center">
<Col className="rounded-lg bg-white px-4 pb-4">
<Title text="Limit Order" />
<LimitOrderPanel
hidden={!seeLimit}
contract={contract}
user={user}
unfilledBets={unfilledBets}
/>
</Col>
<Modal
open={seeLimit}
setOpen={setSeeLimit}
position="center"
className="rounded-lg bg-white px-4 pb-4"
>
<Title text="Limit Order" />
<LimitOrderPanel
hidden={!seeLimit}
contract={contract}
user={user}
unfilledBets={unfilledBets}
/>
<LimitBets
contract={contract}
bets={unfilledBets as LimitBet[]}
className="mt-2 rounded-lg bg-white px-4 pb-4"
className="mt-4"
/>
</Modal>
</Col>