From e2a2067d0a71c4a7d83b7fb3e9f1d3ce0c1c00a7 Mon Sep 17 00:00:00 2001 From: Dan Homola Date: Fri, 8 Mar 2019 16:37:42 +0100 Subject: [PATCH] Fix example of setting defaultViewport per story --- addons/viewport/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/viewport/README.md b/addons/viewport/README.md index 5e9273e9b486..b9c2fe047511 100644 --- a/addons/viewport/README.md +++ b/addons/viewport/README.md @@ -89,7 +89,7 @@ import addStories from '@storybook/react'; addStories('Stories', module) // To set a default viewport for all the stories for this component .addParameters({ viewport: { defaultViewport: 'iphone6' }}) - .add('story', () => , { viewport: 'iphonex' }); + .add('story', () => , { viewport: { defaultViewport: 'iphonex' }}); ``` ## Examples