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 { 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: {
@ -116,11 +115,6 @@ export function SignedInBinaryMobileBetting(props: {
'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>
</>
)

View File

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