diff --git a/app/javascript/flavours/glitch/components/status_action_bar.jsx b/app/javascript/flavours/glitch/components/status_action_bar.jsx index 8fc002d7ad..55898e0c8a 100644 --- a/app/javascript/flavours/glitch/components/status_action_bar.jsx +++ b/app/javascript/flavours/glitch/components/status_action_bar.jsx @@ -122,6 +122,10 @@ class StatusActionBar extends ImmutablePureComponent { this.props.onReactionAdd(this.props.status.get('id'), data.native.replace(/:/g, ''), data.imageUrl); } + handleEmojiPick = data => { + this.props.onReactionAdd(this.props.status.get('id'), data.native.replace(/:/g, ''), data.imageUrl); + } + handleReblogClick = e => { const { signedIn } = this.context.identity; @@ -205,6 +209,8 @@ class StatusActionBar extends ImmutablePureComponent { handleNoOp = () => {} // hack for reaction add button + handleNoOp = () => {} // hack for reaction add button + render () { const { status, intl, withDismiss, withCounters, showReplyCount, scrollKey } = this.props; const { permissions } = this.context.identity; diff --git a/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx b/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx index cdbd957c06..0f7c021b64 100644 --- a/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx @@ -390,7 +390,7 @@ class EmojiPickerDropdown extends React.PureComponent { />} - + {({ props, placement })=> (
diff --git a/app/javascript/flavours/glitch/features/notifications/components/notification.jsx b/app/javascript/flavours/glitch/features/notifications/components/notification.jsx index b455eba632..13892dbb53 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/notification.jsx +++ b/app/javascript/flavours/glitch/features/notifications/components/notification.jsx @@ -179,6 +179,28 @@ export default class Notification extends ImmutablePureComponent { unread={this.props.unread} /> ); + case 'reaction': + return ( +