add storybook for issue #313

nolan/issue-313
Nolan Lawson 2019-03-31 09:07:27 -07:00
parent f654ef4050
commit e7fd919154
1 changed files with 11 additions and 0 deletions

View File

@ -53,6 +53,17 @@ storiesOf('Picker', module)
/>
))
.add('Picker with onSelect (issue #313)', () => {
const addEmoji = e => {
console.log(localStorage.getItem('emoji-mart.frequently'));
if (e.unified.length <= 5) {
let emojiPic = String.fromCodePoint(`0x${e.unified}`);
console.log(emojiPic);
}
};
return (<Picker onSelect={this.addEmoji} />)
})
.add('Custom “Not found” component', () => (
<Picker
notFound={() => (