Fix bet modal probability sticking (#793)
* Fix button group styles * Reset prob strike-out when bet modal closed
This commit is contained in:
parent
bea94d58c5
commit
7da4eb8fe9
|
@ -22,7 +22,7 @@ import { formatMoney } from 'common/util/format'
|
|||
export function BetInline(props: {
|
||||
contract: CPMMBinaryContract | PseudoNumericContract
|
||||
className?: string
|
||||
setProbAfter: (probAfter: number) => void
|
||||
setProbAfter: (probAfter: number | undefined) => void
|
||||
onClose: () => void
|
||||
}) {
|
||||
const { contract, className, setProbAfter, onClose } = props
|
||||
|
@ -82,7 +82,7 @@ export function BetInline(props: {
|
|||
<div className="text-xl">Bet</div>
|
||||
<YesNoSelector
|
||||
className="space-x-0"
|
||||
btnClassName="rounded-none first:rounded-l-2xl last:rounded-r-2xl"
|
||||
btnClassName="rounded-l-none rounded-r-none first:rounded-l-2xl last:rounded-r-2xl"
|
||||
selected={outcome}
|
||||
onSelect={setOutcome}
|
||||
isPseudoNumeric={isPseudoNumeric}
|
||||
|
@ -113,7 +113,12 @@ export function BetInline(props: {
|
|||
</Button>
|
||||
)}
|
||||
<SignUpPrompt size="xs" />
|
||||
<button onClick={onClose}>
|
||||
<button
|
||||
onClick={() => {
|
||||
setProbAfter(undefined)
|
||||
onClose()
|
||||
}}
|
||||
>
|
||||
<XIcon className="ml-1 h-6 w-6" />
|
||||
</button>
|
||||
</Row>
|
||||
|
|
Loading…
Reference in New Issue
Block a user