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:
Unfortanily, it doesn't work at all. What I'm doing wrong?