This commit is contained in:
akus062381 2021-05-27 15:21:32 -04:00 committed by mabashian
parent 7725c6f18f
commit 9956538224

View File

@ -11,7 +11,7 @@ const SmallButton = styled(Button)`
}
`;
function MultiButtonToggle({ buttons, value, onChange }) {
function MultiButtonToggle({ buttons, value, onChange, }) {
const setValue = newValue => {
if (value !== newValue) {
onChange(newValue);
@ -24,6 +24,7 @@ function MultiButtonToggle({ buttons, value, onChange }) {
buttons.map(([buttonValue, buttonLabel]) => (
<SmallButton
aria-label={buttonLabel}
ouiaId={`button-label-${buttonLabel}`}
key={buttonLabel}
className={`toggle-button-${buttonValue}`}
onClick={() => setValue(buttonValue)}