From d0be27b55556168a26a1d295a79da125e6f32236 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Wed, 3 Nov 2021 18:04:42 -0400 Subject: [PATCH] oops --- src/components/ButtonSelect.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ButtonSelect.tsx b/src/components/ButtonSelect.tsx index 95a2c38..009544f 100644 --- a/src/components/ButtonSelect.tsx +++ b/src/components/ButtonSelect.tsx @@ -31,11 +31,12 @@ function ButtonSelect(props: PickerProps) { { "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}