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
2 parents 57fc3cd + 259b12a commit f10ef90
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
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 f10ef90

Please sign in to comment.