This commit is contained in:
lingdocs 2021-11-03 18:04:42 -04:00
parent 1e4d5b5618
commit d0be27b555
1 changed files with 4 additions and 3 deletions

View File

@ -31,11 +31,12 @@ function ButtonSelect<L extends string>(props: PickerProps<L>) {
{ "btn-sm": props.small || props.xSmall }
)}
onClick={() => props.handleChange(option.value)}
style={props.xSmall ? {
fontSize: "small",
style={{
...props.xSmall ?
{ fontSize: "small" }: {},
...option.color ?
{ background: option.color } : {},
} : {}}
}}
>
{option.label}
</button>