Skip to content

Commit

Permalink
fix: update backgrounds examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Nov 17, 2022
1 parent 55b7034 commit ae231a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ addDecorator(withBackgrounds);

storiesOf('Background StoriesOf', module)
.addParameters({
backgrounds: [
{ name: 'warm', value: 'hotpink', default: true },
{ name: 'cool', value: 'deepskyblue' },
],
backgrounds: {
default: 'warm',
values: [
{ name: 'warm', value: 'hotpink' },
{ name: 'cool', value: 'deepskyblue' },
],
},
})
.add('Basic', () => <Text>Change background color via Addons -&gt; Background</Text>);
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ const BackgroundMeta: ComponentMeta<typeof Background> = {
component: Background,
decorators: [withBackgrounds],
parameters: {
backgrounds: [
{ name: 'warm', value: 'hotpink', default: true },
{ name: 'cool', value: 'deepskyblue' },
],
backgrounds: {
default: 'warm',
values: [
{ name: 'warm', value: 'hotpink' },
{ name: 'cool', value: 'deepskyblue' },
],
},
},
};

Expand Down

0 comments on commit ae231a0

Please sign in to comment.