diff --git a/.storybook/addons.js b/.storybook/addons.js index 41a31c20..05510780 100644 --- a/.storybook/addons.js +++ b/.storybook/addons.js @@ -1,3 +1,3 @@ -import '@storybook/addon-actions/register' import '@storybook/addon-knobs/register' +import '@storybook/addon-actions/register' import '@storybook/addon-options/register' diff --git a/.storybook/config.js b/.storybook/config.js index 1d9e1c33..9f1d36ec 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,6 +1,7 @@ import React from 'react' import { configure, addDecorator } from '@storybook/react' import { withKnobs } from '@storybook/addon-knobs' +import { setOptions } from '@storybook/addon-options' import { ThemeProvider } from 'styled-components' import 'styles/global' @@ -19,4 +20,11 @@ addDecorator(story => ( addDecorator(withKnobs) +const { name, repository: url } = require('../package.json') + +setOptions({ + name, + url, +}) + configure(loadStories, module)