Skip to content

Commit 58a8a1b

Browse files
committed
chore(storybook): update storybook to version 5
1 parent c2c03cb commit 58a8a1b

3 files changed

Lines changed: 5006 additions & 4388 deletions

File tree

.storybook/config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable import/no-extraneous-dependencies */
22
import {
3-
addDecorator,
3+
addParameters,
44
configure,
55
} from '@storybook/html';
66
import { withBackgrounds } from '@storybook/addon-backgrounds';
@@ -14,7 +14,7 @@ function loadStories() {
1414
req.keys().forEach(filename => req(filename));
1515
}
1616

17-
addDecorator(withBackgrounds([
17+
const options = [
1818
{ name: 'Blue', value: 'blue' },
1919
{ name: 'Green', value: 'green' },
2020
{ name: 'Yellow', value: 'yellow' },
@@ -23,6 +23,8 @@ addDecorator(withBackgrounds([
2323
{ name: 'Purple', value: 'purple' },
2424
{ name: 'Black', value: 'black' },
2525
{ name: 'White', value: 'white', default: true },
26-
]));
26+
];
27+
28+
addParameters({ backgrounds: options });
2729

2830
configure(loadStories, module);

0 commit comments

Comments
 (0)