order book things
This commit is contained in:
parent
513cf7b290
commit
b46499a583
|
@ -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, OrderBookButton } 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>
|
||||
</>
|
||||
)
|
||||
|
|
|
@ -415,12 +415,8 @@ export function BuyPanel(props: {
|
|||
>
|
||||
Advanced
|
||||
</button>
|
||||
<Modal
|
||||
open={seeLimit}
|
||||
setOpen={setSeeLimit}
|
||||
position="center"
|
||||
className="rounded-lg bg-white px-4 pb-8"
|
||||
>
|
||||
<Modal open={seeLimit} setOpen={setSeeLimit} position="center">
|
||||
<Col className="rounded-lg bg-white px-4 pb-4">
|
||||
<Title text="Limit Order" />
|
||||
<LimitOrderPanel
|
||||
hidden={!seeLimit}
|
||||
|
@ -428,6 +424,12 @@ export function BuyPanel(props: {
|
|||
user={user}
|
||||
unfilledBets={unfilledBets}
|
||||
/>
|
||||
</Col>
|
||||
<LimitBets
|
||||
contract={contract}
|
||||
bets={unfilledBets as LimitBet[]}
|
||||
className="mt-2 rounded-lg bg-white px-4 pb-4"
|
||||
/>
|
||||
</Modal>
|
||||
</Col>
|
||||
</Col>
|
||||
|
|
Loading…
Reference in New Issue
Block a user