You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, i love this addon it's really great. My config is as follows
addDecorator(withThemesProvider(themes));
Which works great but i'd also like to add something like this
addDecorator(story => <Main>{story}</Main>)
and have main also respond to the theme changes when the UI buttons are clicked... but if i do it this way Main as a decorator has no access to the theme... any ideas?
As a work around i've done this
const stories = storiesOf("Buttons/ButtonAction", module).addDecorator(
story => <Main>{story()}</Main>
);
stories.add("usage", () => <ButtonAction>Button Action</ButtonAction>, {
info: "This is a buttonAction"
});
which works fine but Main will show up in my story source which is kinda not what i want.
The text was updated successfully, but these errors were encountered:
Hey, i love this addon it's really great. My config is as follows
Which works great but i'd also like to add something like this
and have main also respond to the theme changes when the UI buttons are clicked... but if i do it this way
Main
as a decorator has no access to the theme... any ideas?As a work around i've done this
which works fine but
Main
will show up in my story source which is kinda not what i want.The text was updated successfully, but these errors were encountered: