Skip to content

Commit

Permalink
Merge pull request #14391 from YozhEzhi/patch-3
Browse files Browse the repository at this point in the history
[Documentation]: Update my-component-story-use-globaltype.js.mdx
  • Loading branch information
shilman committed Mar 30, 2021
1 parent 897692b commit cdb36c6
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 cdb36c6

Please sign in to comment.