mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
console addon configured
This commit is contained in:
parent
54ef1d75c6
commit
0d1ae2ec8a
1 changed files with 4 additions and 2 deletions
|
|
@ -1,10 +1,12 @@
|
|||
const React = require('react');
|
||||
const { withConsole } = require('@storybook/addon-console');
|
||||
const { addDecorator, configure } = require('@storybook/react');
|
||||
const RouterDecorator = require('./RouterDecorator');
|
||||
|
||||
addDecorator((childrenFn) => (
|
||||
addDecorator((renderStory, context) => withConsole()(renderStory)(context));
|
||||
addDecorator((renderStory) => (
|
||||
<RouterDecorator>
|
||||
{childrenFn()}
|
||||
{renderStory()}
|
||||
</RouterDecorator>
|
||||
));
|
||||
configure(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue