mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
yay
This commit is contained in:
parent
7725c6f18f
commit
9956538224
@ -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)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user