order book things (#953)

Adding order book to limit orders in mobile modal. This is pretty ugly and just a quick fix because people are complaining.
This commit is contained in:
ingawei 2022-09-28 09:04:47 -05:00 committed by GitHub
parent e0e6838711
commit 7c8e977d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 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: {
@ -116,11 +115,6 @@ export function SignedInBinaryMobileBetting(props: {
'border-greyscale-3 bg-greyscale-1 rounded-md border-2 px-4 py-2' 'border-greyscale-3 bg-greyscale-1 rounded-md border-2 px-4 py-2'
} }
/> />
<LimitBets
className="mt-4"
contract={contract as CPMMBinaryContract}
bets={unfilledBets}
/>
</Col> </Col>
</> </>
) )

View File

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