5

I got a component which has a button that can be clicked. It got its props, here it go:

...
<Button id="buttonAddTreatments" 
   color={colorOfTheButton}
   variant="contained" 
   onClick={onAddClick}
   disabled={disableButton}>
     <AddIcon></AddIcon>
</Button>
...

Then, when I load it in the Storybook, I try to type a function on the onClick, with the Controls add-on, just like this:

enter image description here

Unfortanily, it doesn't work at all. What I'm doing wrong?

Pedro Relvas
  • 678
  • 7
  • 19

0 Answers0