Allow sell button on the same line as bet button
This commit is contained in:
parent
b249d729ca
commit
d3cf8cb3ad
|
@ -9,6 +9,8 @@ export function YesNoSelector(props: {
|
||||||
onSelect: (selected: 'YES' | 'NO') => void
|
onSelect: (selected: 'YES' | 'NO') => void
|
||||||
className?: string
|
className?: string
|
||||||
btnClassName?: string
|
btnClassName?: string
|
||||||
|
replaceYesButton?: React.ReactNode
|
||||||
|
replaceNoButton?: React.ReactNode
|
||||||
}) {
|
}) {
|
||||||
const { selected, onSelect, className, btnClassName } = props
|
const { selected, onSelect, className, btnClassName } = props
|
||||||
|
|
||||||
|
@ -17,6 +19,9 @@ export function YesNoSelector(props: {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row className={clsx('space-x-3', className)}>
|
<Row className={clsx('space-x-3', className)}>
|
||||||
|
{props.replaceYesButton ? (
|
||||||
|
props.replaceYesButton
|
||||||
|
) : (
|
||||||
<button
|
<button
|
||||||
className={clsx(
|
className={clsx(
|
||||||
commonClassNames,
|
commonClassNames,
|
||||||
|
@ -30,6 +35,10 @@ export function YesNoSelector(props: {
|
||||||
>
|
>
|
||||||
Bet YES
|
Bet YES
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
{props.replaceNoButton ? (
|
||||||
|
props.replaceNoButton
|
||||||
|
) : (
|
||||||
<button
|
<button
|
||||||
className={clsx(
|
className={clsx(
|
||||||
commonClassNames,
|
commonClassNames,
|
||||||
|
@ -43,6 +52,7 @@ export function YesNoSelector(props: {
|
||||||
>
|
>
|
||||||
Bet NO
|
Bet NO
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user