diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index c661cef2..c9989185 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -631,9 +631,9 @@ function LimitOrderPanel(props: { return ( - + -
+
Buy {isPseudoNumeric ? : } up to
-
+
Buy {isPseudoNumeric ? : } down to
diff --git a/web/components/input.tsx b/web/components/input.tsx index e2209f8b..86305355 100644 --- a/web/components/input.tsx +++ b/web/components/input.tsx @@ -13,7 +13,7 @@ export const Input = ( 'h-12 rounded-md border bg-white px-4 shadow-sm transition-colors invalid:border-red-600 invalid:text-red-900 invalid:placeholder-red-300 focus:outline-none disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 md:text-sm', error ? 'border-red-300 text-red-900 placeholder-red-300 focus:border-red-600 focus:ring-red-500' // matches invalid: styles - : 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500', + : 'placeholder-greyscale-4 border-gray-300 focus:border-indigo-500 focus:ring-indigo-500', className )} {...rest} diff --git a/web/components/probability-input.tsx b/web/components/probability-input.tsx index 447dcdb0..87e26acd 100644 --- a/web/components/probability-input.tsx +++ b/web/components/probability-input.tsx @@ -4,18 +4,15 @@ import { getPseudoProbability } from 'common/pseudo-numeric' import { BucketInput } from './bucket-input' import { Input } from './input' import { Col } from './layout/col' -import { Spacer } from './layout/spacer' -export function ProbabilityInput(props: { +function ProbabilityInput(props: { prob: number | undefined onChange: (newProb: number | undefined) => void disabled?: boolean placeholder?: string - className?: string inputClassName?: string }) { - const { prob, onChange, disabled, placeholder, className, inputClassName } = - props + const { prob, onChange, disabled, placeholder, inputClassName } = props const onProbChange = (str: string) => { let prob = parseInt(str.replace(/\D/g, '')) @@ -29,10 +26,10 @@ export function ProbabilityInput(props: { } return ( - -