commit
1f8254de5e
|
@ -123,8 +123,7 @@ const Emoji = props => {
|
|||
|
||||
if (!setHasEmoji) {
|
||||
if (props.fallback) {
|
||||
style = { fontSize: props.size }
|
||||
children = props.fallback(data)
|
||||
return props.fallback(data)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
|
@ -199,7 +198,6 @@ Emoji.defaultProps = {
|
|||
onOver: () => {},
|
||||
onLeave: () => {},
|
||||
onClick: () => {},
|
||||
fallback: emoji => {},
|
||||
}
|
||||
|
||||
export default Emoji
|
||||
|
|
Loading…
Reference in New Issue