oops
This commit is contained in:
parent
1e4d5b5618
commit
d0be27b555
|
@ -31,11 +31,12 @@ function ButtonSelect<L extends string>(props: PickerProps<L>) {
|
||||||
{ "btn-sm": props.small || props.xSmall }
|
{ "btn-sm": props.small || props.xSmall }
|
||||||
)}
|
)}
|
||||||
onClick={() => props.handleChange(option.value)}
|
onClick={() => props.handleChange(option.value)}
|
||||||
style={props.xSmall ? {
|
style={{
|
||||||
fontSize: "small",
|
...props.xSmall ?
|
||||||
|
{ fontSize: "small" }: {},
|
||||||
...option.color ?
|
...option.color ?
|
||||||
{ background: option.color } : {},
|
{ background: option.color } : {},
|
||||||
} : {}}
|
}}
|
||||||
>
|
>
|
||||||
{option.label}
|
{option.label}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue