From 1bcc52e5875c1654c219650264c1d9523c1773c9 Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Thu, 28 Mar 2019 08:22:30 -0400 Subject: [PATCH] :lipstick: --- src/components/emoji/nimble-emoji.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/emoji/nimble-emoji.js b/src/components/emoji/nimble-emoji.js index 13f6017..67875e6 100644 --- a/src/components/emoji/nimble-emoji.js +++ b/src/components/emoji/nimble-emoji.js @@ -25,9 +25,8 @@ const _getSanitizedData = (props) => { } const _handleClick = (e, props) => { - if (!props.onClick) { - return - } + if (!props.onClick) { return } + var { onClick } = props, emoji = _getSanitizedData(props) @@ -35,9 +34,8 @@ const _handleClick = (e, props) => { } const _handleOver = (e, props) => { - if (!props.onOver) { - return - } + if (!props.onOver) { return } + var { onOver } = props, emoji = _getSanitizedData(props) @@ -45,9 +43,8 @@ const _handleOver = (e, props) => { } const _handleLeave = (e, props) => { - if (!props.onLeave) { - return - } + if (!props.onLeave) { return } + var { onLeave } = props, emoji = _getSanitizedData(props)