From e7fd919154d6cae2635133cbeb9480065f05f9ff Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 31 Mar 2019 09:07:27 -0700 Subject: [PATCH] add storybook for issue #313 --- stories/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stories/index.js b/stories/index.js index 5246092..d8c7797 100644 --- a/stories/index.js +++ b/stories/index.js @@ -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 () + }) + .add('Custom “Not found” component', () => ( (