diff --git a/.storybook/config.js b/.storybook/config.js index 1be585243..fcbd21128 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,15 +1,18 @@ -import InfoAddon from '@kadira/react-storybook-addon-info'; import React from 'react'; +import infoAddon from '@kadira/react-storybook-addon-info'; import { Container } from '../src'; import { configure, setAddon, addDecorator } from '@kadira/storybook'; -addDecorator((story) => ( - - {story()} - -)); +addDecorator((story, info) => { + return ( +

{info.kind}

+

{info.story}

+
+ {story()} +
) + }); -setAddon(InfoAddon); +setAddon(infoAddon); function loadStories() { require('../stories');