Skip to content

Commit

Permalink
Merge pull request #325 from nostalgic-css/develop
Browse files Browse the repository at this point in the history
Release v2.1.x
  • Loading branch information
BcRikko authored Mar 26, 2019
2 parents 67c3e2a + b7b978b commit 860b156
Show file tree
Hide file tree
Showing 4 changed files with 5,024 additions and 4,391 deletions.
9 changes: 5 additions & 4 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* eslint-disable import/no-extraneous-dependencies */
import {
addDecorator,
addParameters,
configure,
} from '@storybook/html';
import { withBackgrounds } from '@storybook/addon-backgrounds';
/* eslint-enable */

import '../scss/nes.scss'; // eslint-disable-line import/no-unresolved
Expand All @@ -14,7 +13,7 @@ function loadStories() {
req.keys().forEach(filename => req(filename));
}

addDecorator(withBackgrounds([
const options = [
{ name: 'Blue', value: 'blue' },
{ name: 'Green', value: 'green' },
{ name: 'Yellow', value: 'yellow' },
Expand All @@ -23,6 +22,8 @@ addDecorator(withBackgrounds([
{ name: 'Purple', value: 'purple' },
{ name: 'Black', value: 'black' },
{ name: 'White', value: 'white', default: true },
]));
];

addParameters({ backgrounds: options });

configure(loadStories, module);
Loading

0 comments on commit 860b156

Please sign in to comment.