diff --git a/app/gabsocial/components/emoji_selector.js b/app/gabsocial/components/emoji_selector.js index fabc276dd..e86775d4b 100644 --- a/app/gabsocial/components/emoji_selector.js +++ b/app/gabsocial/components/emoji_selector.js @@ -5,17 +5,22 @@ import emojify from 'gabsocial/features/emoji/emoji'; export default class EmojiSelector extends React.Component { - propTypes = { + static propTypes = { onReact: PropTypes.func.isRequired, } + static defaultProps = { + onReact: () => {}, + } + render() { const { onReact } = this.props; return (
- {ALLOWED_EMOJI.map(emoji => ( + {ALLOWED_EMOJI.map((emoji, i) => (