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 { User } from 'web/lib/firebase/users'
import { SellRow } from './sell-row' import { SellRow } from './sell-row'
import { useUnfilledBets } from 'web/hooks/use-bets' import { useUnfilledBets } from 'web/hooks/use-bets'
import { LimitBets } from './limit-bets'
/** Button that opens BetPanel in a new modal */ /** Button that opens BetPanel in a new modal */
export default function BetButton(props: { export default function BetButton(props: {

View File

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