Hide bet panel when signed out
This commit is contained in:
parent
5dec6b4a22
commit
a7c8b8aec4
|
@ -67,27 +67,32 @@ export function BetPanel(props: {
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<QuickOrLimitBet
|
{user ? (
|
||||||
isLimitOrder={isLimitOrder}
|
<>
|
||||||
setIsLimitOrder={setIsLimitOrder}
|
<QuickOrLimitBet
|
||||||
hideToggle={!user}
|
isLimitOrder={isLimitOrder}
|
||||||
/>
|
setIsLimitOrder={setIsLimitOrder}
|
||||||
<BuyPanel
|
hideToggle={!user}
|
||||||
hidden={isLimitOrder}
|
/>
|
||||||
contract={contract}
|
<BuyPanel
|
||||||
user={user}
|
hidden={isLimitOrder}
|
||||||
unfilledBets={unfilledBets}
|
contract={contract}
|
||||||
/>
|
user={user}
|
||||||
<LimitOrderPanel
|
unfilledBets={unfilledBets}
|
||||||
hidden={!isLimitOrder}
|
/>
|
||||||
contract={contract}
|
<LimitOrderPanel
|
||||||
user={user}
|
hidden={!isLimitOrder}
|
||||||
unfilledBets={unfilledBets}
|
contract={contract}
|
||||||
/>
|
user={user}
|
||||||
|
unfilledBets={unfilledBets}
|
||||||
<BetSignUpPrompt />
|
/>
|
||||||
|
</>
|
||||||
{!user && <PlayMoneyDisclaimer />}
|
) : (
|
||||||
|
<>
|
||||||
|
<BetSignUpPrompt />
|
||||||
|
<PlayMoneyDisclaimer />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
{user && unfilledBets.length > 0 && (
|
{user && unfilledBets.length > 0 && (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user