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,
deleteContract,
contractPath,
tradingAllowed,
} from '../lib/firebase/contracts'
import { Col } from './layout/col'
import { Spacer } from './layout/spacer'
@ -58,11 +59,13 @@ export const ContractOverview = (props: {
large
/>
{tradingAllowed(contract) && (
<BetRow
contract={contract}
className="md:hidden"
labelClassName="hidden"
/>
)}
</Row>
<ContractDetails contract={contract} />