Fix emoji component errors
This commit is contained in:
parent
792ca08d03
commit
0ed867f7bd
2 changed files with 8 additions and 3 deletions
|
@ -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 (
|
||||
<div className='emoji-react-selector'>
|
||||
{ALLOWED_EMOJI.map(emoji => (
|
||||
{ALLOWED_EMOJI.map((emoji, i) => (
|
||||
<button
|
||||
key={i}
|
||||
className='emoji-react-selector__emoji'
|
||||
dangerouslySetInnerHTML={{ __html: emojify(emoji) }}
|
||||
onClick={onReact(emoji)}
|
||||
|
|
|
@ -5,7 +5,7 @@ import { reduceEmoji } from 'gabsocial/utils/emoji_reacts';
|
|||
|
||||
export class StatusInteractionBar extends React.Component {
|
||||
|
||||
propTypes = {
|
||||
static propTypes = {
|
||||
status: ImmutablePropTypes.map,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue