This commit is contained in:
Ian Philips 2022-09-07 21:39:21 -06:00
parent 35de4c485a
commit bcee49878b
3 changed files with 14 additions and 7 deletions

View File

@ -35,10 +35,13 @@ export default function BetButton(props: {
{user ? ( {user ? (
<Button <Button
size="lg" size="lg"
className={clsx('my-auto inline-flex min-w-[75px] ', btnClassName)} className={clsx(
'my-auto inline-flex min-w-[75px] whitespace-nowrap ',
btnClassName
)}
onClick={() => setOpen(true)} onClick={() => setOpen(true)}
> >
Trade Weigh in
</Button> </Button>
) : ( ) : (
<BetSignUpPrompt /> <BetSignUpPrompt />

View File

@ -297,7 +297,7 @@ function BuyPanel(props: {
return ( return (
<Col className={hidden ? 'hidden' : ''}> <Col className={hidden ? 'hidden' : ''}>
<div className="my-3 text-left text-sm text-gray-500"> <div className="my-3 text-left text-sm text-gray-500">
{isPseudoNumeric ? 'Direction' : 'Outcome'} {isPseudoNumeric ? 'Direction' : 'Buy'}
</div> </div>
<YesNoSelector <YesNoSelector
className="mb-4" className="mb-4"
@ -379,7 +379,7 @@ function BuyPanel(props: {
)} )}
onClick={betDisabled ? undefined : submitBet} onClick={betDisabled ? undefined : submitBet}
> >
{isSubmitting ? 'Submitting...' : 'Submit trade'} {isSubmitting ? 'Submitting...' : 'Submit'}
</button> </button>
)} )}
@ -750,15 +750,18 @@ function QuickOrLimitBet(props: {
return ( return (
<Row className="align-center mb-4 justify-between"> <Row className="align-center mb-4 justify-between">
<div className="text-4xl">Trade</div> <div className="mr-2 -ml-2 shrink-0 text-3xl sm:-ml-0 sm:text-4xl">
Weigh in
</div>
{!hideToggle && ( {!hideToggle && (
<Row className="mt-1 items-center gap-2"> <Row className="mt-1 ml-1 items-center gap-1.5 sm:ml-0 sm:gap-2">
<PillButton <PillButton
selected={!isLimitOrder} selected={!isLimitOrder}
onSelect={() => { onSelect={() => {
setIsLimitOrder(false) setIsLimitOrder(false)
track('select quick order') track('select quick order')
}} }}
xs={true}
> >
Quick Quick
</PillButton> </PillButton>
@ -768,6 +771,7 @@ function QuickOrLimitBet(props: {
setIsLimitOrder(true) setIsLimitOrder(true)
track('select limit order') track('select limit order')
}} }}
xs={true}
> >
Limit Limit
</PillButton> </PillButton>

View File

@ -19,7 +19,7 @@ export function BetSignUpPrompt(props: {
size={size} size={size}
color="gradient" color="gradient"
> >
{label ?? 'Sign up to trade!'} {label ?? 'Sign up to weigh in!'}
</Button> </Button>
) : null ) : null
} }