cleanup frontend emoji reaction code
This commit is contained in:
parent
1b3305c3db
commit
d249994de8
11 changed files with 64 additions and 71 deletions
|
|
@ -144,7 +144,7 @@ class ActionBar extends React.PureComponent {
|
|||
navigator.clipboard.writeText(url);
|
||||
};
|
||||
|
||||
nop = () => {}
|
||||
nop = () => {} // hack for reaction add button
|
||||
|
||||
render () {
|
||||
const { status, intl } = this.props;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import Icon from 'flavours/glitch/components/icon';
|
|||
import AnimatedNumber from 'flavours/glitch/components/animated_number';
|
||||
import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder';
|
||||
import EditedTimestamp from 'flavours/glitch/components/edited_timestamp';
|
||||
import StatusReactionsBar from '../../../components/status_reactions_bar';
|
||||
import StatusReactions from '../../../components/status_reactions';
|
||||
|
||||
class DetailedStatus extends ImmutablePureComponent {
|
||||
|
||||
|
|
@ -328,7 +328,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
|||
disabled
|
||||
/>
|
||||
|
||||
<StatusReactionsBar
|
||||
<StatusReactions
|
||||
statusId={status.get('id')}
|
||||
reactions={status.get('reactions')}
|
||||
addReaction={this.props.onReactionAdd}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue