Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
2 changed files with
9 additions and
1 deletions
-
.storybook/addons.js
-
.storybook/config.js
|
@ -1,3 +1,3 @@ |
|
|
import '@storybook/addon-actions/register' |
|
|
|
|
|
import '@storybook/addon-knobs/register' |
|
|
import '@storybook/addon-knobs/register' |
|
|
|
|
|
import '@storybook/addon-actions/register' |
|
|
import '@storybook/addon-options/register' |
|
|
import '@storybook/addon-options/register' |
|
|
|
@ -1,6 +1,7 @@ |
|
|
import React from 'react' |
|
|
import React from 'react' |
|
|
import { configure, addDecorator } from '@storybook/react' |
|
|
import { configure, addDecorator } from '@storybook/react' |
|
|
import { withKnobs } from '@storybook/addon-knobs' |
|
|
import { withKnobs } from '@storybook/addon-knobs' |
|
|
|
|
|
import { setOptions } from '@storybook/addon-options' |
|
|
import { ThemeProvider } from 'styled-components' |
|
|
import { ThemeProvider } from 'styled-components' |
|
|
|
|
|
|
|
|
import 'styles/global' |
|
|
import 'styles/global' |
|
@ -19,4 +20,11 @@ addDecorator(story => ( |
|
|
|
|
|
|
|
|
addDecorator(withKnobs) |
|
|
addDecorator(withKnobs) |
|
|
|
|
|
|
|
|
|
|
|
const { name, repository: url } = require('../package.json') |
|
|
|
|
|
|
|
|
|
|
|
setOptions({ |
|
|
|
|
|
name, |
|
|
|
|
|
url, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
configure(loadStories, module) |
|
|
configure(loadStories, module) |
|
|