diff --git a/web/components/bet-inline.tsx b/web/components/bet-inline.tsx index a9752c64..7b12a297 100644 --- a/web/components/bet-inline.tsx +++ b/web/components/bet-inline.tsx @@ -44,12 +44,7 @@ export function BetInline(props: { const betDisabled = submitBet.isLoading || submitBet.isError || !amount return ( - +
Bet
onSelect('YES')} @@ -55,7 +55,7 @@ export function YesNoSelector(props: { 'border-red-400 hover:border-red-500 hover:bg-red-500 hover:text-white', selected == 'NO' ? 'bg-red-400 text-white' - : 'bg-transparent text-red-400', + : 'bg-white text-red-400', btnClassName )} onClick={() => onSelect('NO')} diff --git a/web/pages/embed/[username]/[contractSlug].tsx b/web/pages/embed/[username]/[contractSlug].tsx index 9b4a2b59..ca588b4a 100644 --- a/web/pages/embed/[username]/[contractSlug].tsx +++ b/web/pages/embed/[username]/[contractSlug].tsx @@ -1,3 +1,4 @@ +import { XIcon } from '@heroicons/react/solid' import { Bet } from 'common/bet' import { Contract, CPMMBinaryContract } from 'common/contract' import { DOMAIN } from 'common/envs/constants' @@ -110,14 +111,13 @@ export function ContractEmbed(props: { contract: Contract; bets: Bet[] }) { disabled /> - {(isBinary || isPseudoNumeric) && tradingAllowed(contract) && ( - - )} + {(isBinary || isPseudoNumeric) && + tradingAllowed(contract) && + !betPanelOpen && ( + + )} {isBinary && } @@ -140,6 +140,15 @@ export function ContractEmbed(props: { contract: Contract; bets: Bet[] }) { + {(isBinary || isPseudoNumeric) && betPanelOpen && ( + + + + + )} +
{(isBinary || isPseudoNumeric) && ( )}
- {(isBinary || isPseudoNumeric) && betPanelOpen && ( - - )} ) }