"buy" => "bet"

This commit is contained in:
mantikoros 2022-04-09 16:13:36 -05:00
parent 2fe71731e4
commit b624ec045e
5 changed files with 10 additions and 10 deletions

View File

@ -103,7 +103,7 @@ export function AnswerBetPanel(props: {
<Col className={clsx('px-2 pb-2 pt-4 sm:pt-0', className)}> <Col className={clsx('px-2 pb-2 pt-4 sm:pt-0', className)}>
<Row className="items-center justify-between self-stretch"> <Row className="items-center justify-between self-stretch">
<div className="text-xl"> <div className="text-xl">
Buy {isModal ? `"${answer.text}"` : 'this answer'} Bet on {isModal ? `"${answer.text}"` : 'this answer'}
</div> </div>
{!isModal && ( {!isModal && (

View File

@ -96,7 +96,7 @@ export function CreateAnswerPanel(props: {
{text && ( {text && (
<> <>
<Col className="mt-1 gap-2"> <Col className="mt-1 gap-2">
<div className="text-sm text-gray-500">Buy amount</div> <div className="text-sm text-gray-500">Bet amount</div>
<BuyAmountInput <BuyAmountInput
amount={betAmount} amount={betAmount}
onChange={setBetAmount} onChange={setBetAmount}

View File

@ -160,7 +160,7 @@ export function BetPanelSwitcher(props: {
tradeType === 'BUY' ? setTradeType('SELL') : setTradeType('BUY') tradeType === 'BUY' ? setTradeType('SELL') : setTradeType('BUY')
} }
> >
{tradeType === 'BUY' ? 'Sell' : 'Buy'} {tradeType === 'BUY' ? 'Sell' : 'Bet'}
</button> </button>
</Row> </Row>
</Col> </Col>
@ -385,11 +385,11 @@ function BuyPanel(props: {
)} )}
onClick={betDisabled ? undefined : submitBet} onClick={betDisabled ? undefined : submitBet}
> >
{isSubmitting ? 'Submitting...' : 'Submit Buy'} {isSubmitting ? 'Submitting...' : 'Submit bet'}
</button> </button>
)} )}
{wasSubmitted && <div className="mt-4">Buy submitted!</div>} {wasSubmitted && <div className="mt-4">Bet submitted!</div>}
</> </>
) )
} }

View File

@ -23,9 +23,9 @@ export default function BetRow(props: {
<> <>
<div className={className}> <div className={className}>
<Row className="items-center justify-end gap-2"> <Row className="items-center justify-end gap-2">
<div className={clsx('mr-2 text-gray-400', labelClassName)}> {/* <div className={clsx('mr-2 text-gray-400', labelClassName)}>
Place a trade Place a trade
</div> </div> */}
<YesNoSelector <YesNoSelector
btnClassName="btn-sm w-24" btnClassName="btn-sm w-24"
onSelect={(choice) => { onSelect={(choice) => {

View File

@ -28,7 +28,7 @@ export function YesNoSelector(props: {
)} )}
onClick={() => onSelect('YES')} onClick={() => onSelect('YES')}
> >
Buy YES Bet YES
</button> </button>
<button <button
className={clsx( className={clsx(
@ -41,7 +41,7 @@ export function YesNoSelector(props: {
)} )}
onClick={() => onSelect('NO')} onClick={() => onSelect('NO')}
> >
Buy NO Bet NO
</button> </button>
</Row> </Row>
) )
@ -173,7 +173,7 @@ export function BuyButton(props: { className?: string; onClick?: () => void }) {
)} )}
onClick={onClick} onClick={onClick}
> >
Buy Bet
</button> </button>
) )
} }