Hide bet row when trading not allowed

This commit is contained in:
jahooma 2022-01-29 21:08:06 -06:00
parent 482654d06b
commit 9fa457dec8

View File

@ -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
/> />
<BetRow {tradingAllowed(contract) && (
contract={contract} <BetRow
className="md:hidden" contract={contract}
labelClassName="hidden" className="md:hidden"
/> labelClassName="hidden"
/>
)}
</Row> </Row>
<ContractDetails contract={contract} /> <ContractDetails contract={contract} />