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 Mar 30, 2021
1 parent 57fc3cd commit 259b12a
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 259b12a

Please sign in to comment.