Hide bet row when trading not allowed
This commit is contained in:
parent
482654d06b
commit
9fa457dec8
|
@ -3,6 +3,7 @@ import {
|
||||||
Contract,
|
Contract,
|
||||||
deleteContract,
|
deleteContract,
|
||||||
contractPath,
|
contractPath,
|
||||||
|
tradingAllowed,
|
||||||
} from '../lib/firebase/contracts'
|
} from '../lib/firebase/contracts'
|
||||||
import { Col } from './layout/col'
|
import { Col } from './layout/col'
|
||||||
import { Spacer } from './layout/spacer'
|
import { Spacer } from './layout/spacer'
|
||||||
|
@ -58,11 +59,13 @@ export const ContractOverview = (props: {
|
||||||
large
|
large
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{tradingAllowed(contract) && (
|
||||||
<BetRow
|
<BetRow
|
||||||
contract={contract}
|
contract={contract}
|
||||||
className="md:hidden"
|
className="md:hidden"
|
||||||
labelClassName="hidden"
|
labelClassName="hidden"
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<ContractDetails contract={contract} />
|
<ContractDetails contract={contract} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user