Larger font on amount input
This commit is contained in:
parent
bec8cdb3e8
commit
6232284e92
|
@ -45,7 +45,7 @@ export function AmountInput(props: {
|
||||||
<span className="bg-gray-200 text-sm">{label}</span>
|
<span className="bg-gray-200 text-sm">{label}</span>
|
||||||
<input
|
<input
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'input input-bordered',
|
'input input-bordered max-w-[200px] text-lg',
|
||||||
error && 'input-error',
|
error && 'input-error',
|
||||||
inputClassName
|
inputClassName
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -116,7 +116,7 @@ export function AnswerBetPanel(props: {
|
||||||
</Row>
|
</Row>
|
||||||
<div className="my-3 text-left text-sm text-gray-500">Amount </div>
|
<div className="my-3 text-left text-sm text-gray-500">Amount </div>
|
||||||
<BuyAmountInput
|
<BuyAmountInput
|
||||||
inputClassName="w-full"
|
inputClassName="w-full max-w-none"
|
||||||
amount={betAmount}
|
amount={betAmount}
|
||||||
onChange={setBetAmount}
|
onChange={setBetAmount}
|
||||||
error={error}
|
error={error}
|
||||||
|
|
|
@ -62,7 +62,7 @@ export function BetPanel(props: {
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="mb-6 text-2xl text-gray-700">Place a trade</div>
|
<div className="mb-6 text-2xl">Place your bet</div>
|
||||||
{/* <Title className={clsx('!mt-0 text-neutral')} text="Place a trade" /> */}
|
{/* <Title className={clsx('!mt-0 text-neutral')} text="Place a trade" /> */}
|
||||||
|
|
||||||
<BuyPanel contract={contract} user={user} userBets={userBets ?? []} />
|
<BuyPanel contract={contract} user={user} userBets={userBets ?? []} />
|
||||||
|
@ -125,6 +125,7 @@ export function BetPanelSwitcher(props: {
|
||||||
<BinaryOutcomeLabel outcome={sharesOutcome} /> shares
|
<BinaryOutcomeLabel outcome={sharesOutcome} /> shares
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{tradeType === 'BUY' && (
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm"
|
className="btn btn-sm"
|
||||||
style={{
|
style={{
|
||||||
|
@ -133,11 +134,14 @@ export function BetPanelSwitcher(props: {
|
||||||
color: '#3D4451',
|
color: '#3D4451',
|
||||||
}}
|
}}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
tradeType === 'BUY' ? setTradeType('SELL') : setTradeType('BUY')
|
tradeType === 'BUY'
|
||||||
|
? setTradeType('SELL')
|
||||||
|
: setTradeType('BUY')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{tradeType === 'BUY' ? 'Sell' : 'Bet'}
|
{tradeType === 'BUY' ? 'Sell' : 'Bet'}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
)}
|
)}
|
||||||
|
@ -299,7 +303,7 @@ function BuyPanel(props: {
|
||||||
/>
|
/>
|
||||||
<div className="my-3 text-left text-sm text-gray-500">Amount</div>
|
<div className="my-3 text-left text-sm text-gray-500">Amount</div>
|
||||||
<BuyAmountInput
|
<BuyAmountInput
|
||||||
inputClassName="w-full"
|
inputClassName="w-full max-w-none"
|
||||||
amount={betAmount}
|
amount={betAmount}
|
||||||
onChange={onBetChange}
|
onChange={onBetChange}
|
||||||
error={error}
|
error={error}
|
||||||
|
|
|
@ -72,9 +72,9 @@ export function ResolutionPanel(props: {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className={clsx('rounded-md bg-white px-8 py-6', className)}>
|
<Col className={clsx('rounded-md bg-white px-8 py-6', className)}>
|
||||||
<Title className="!mt-0 whitespace-nowrap" text="Resolve market" />
|
<div className="mb-6 whitespace-nowrap text-2xl">Resolve market</div>
|
||||||
|
|
||||||
<div className="mb-2 text-sm text-gray-500">Outcome</div>
|
<div className="mb-3 text-sm text-gray-500">Outcome</div>
|
||||||
|
|
||||||
<YesNoCancelSelector
|
<YesNoCancelSelector
|
||||||
className="mx-auto my-2"
|
className="mx-auto my-2"
|
||||||
|
|
|
@ -207,7 +207,7 @@ function DonationBox(props: {
|
||||||
Amount
|
Amount
|
||||||
</label>
|
</label>
|
||||||
<BuyAmountInput
|
<BuyAmountInput
|
||||||
inputClassName="w-full donate-input"
|
inputClassName="w-full max-w-none donate-input"
|
||||||
amount={amount}
|
amount={amount}
|
||||||
onChange={setAmount}
|
onChange={setAmount}
|
||||||
error={error}
|
error={error}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user