Skip to content

Commit

Permalink
Update my-component-story-use-globaltype.js.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
YozhEzhi authored and Gabriela Seabra committed Apr 3, 2021
1 parent 9078e66 commit 5c9d4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/snippets/common/my-component-story-use-globaltype.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const getCaptionForLocale = (locale) => {
case 'kr': return '안녕하세요!';
case 'zh': return '你好!';
default:
return 'Hello!',
return 'Hello!';
}
}

export const StoryWithLocale = (args, { globals: { locale } }) => {
const caption = getCaptionForLocale(locale);
return <>{caption}</>;
};
```
```

0 comments on commit 5c9d4b8

Please sign in to comment.