Skip to content

Commit 9bdbe59

Browse files
authored
Merge pull request #103 from frankieali/patch-1
Update addon-background initialization
2 parents 0cb6412 + 3bb16f0 commit 9bdbe59

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.storybook/stories.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22

3-
import { storiesOf, addDecorator } from '@storybook/react';
4-
import backgrounds from '@storybook/addon-backgrounds';
3+
import { storiesOf } from '@storybook/react';
54

65
import Button from '@material-ui/core/Button';
76

@@ -18,13 +17,13 @@ const buttonStyle = {
1817
};
1918

2019
storiesOf('Material Custom theme', module)
21-
.addDecorator(
22-
backgrounds([
20+
.addParameters({
21+
backgrounds: [
2322
{ name: 'init', value: '#FFFFFF' },
2423
{ name: 'twitter', value: '#00aced' },
2524
{ name: 'facebook', value: '#3b5998' }
26-
])
27-
)
25+
]
26+
})
2827
.addDecorator(muiTheme([theme1, theme2, theme3, theme4, theme5]))
2928
.add('Raised buttons', () => (
3029
<div>

0 commit comments

Comments
 (0)