From 8e794d50b50140bcc76e1c136d35a122b43071df Mon Sep 17 00:00:00 2001 From: KMY Date: Sat, 27 May 2023 09:29:39 +0900 Subject: [PATCH] Fix reaction deck dispatch error --- app/javascript/mastodon/features/reaction_deck/index.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/reaction_deck/index.jsx b/app/javascript/mastodon/features/reaction_deck/index.jsx index 0de2fdb98b..b1bc4ccfb9 100644 --- a/app/javascript/mastodon/features/reaction_deck/index.jsx +++ b/app/javascript/mastodon/features/reaction_deck/index.jsx @@ -45,7 +45,7 @@ const StrictModeDroppable = ({ children, ...props }) => { const customEmojiMap = createSelector([state => state.get('custom_emojis')], items => items.reduce((map, emoji) => map.set(emoji.get('shortcode'), emoji), ImmutableMap())); const messages = defineMessages({ - refresh: { id: 'refresh', defaultMessage: 'Refresh' }, + reaction_deck_add: { id: 'reaction_deck.add', defaultMessage: 'Add' }, heading: { id: 'column.reaction_deck', defaultMessage: 'Reaction deck' }, }); @@ -63,7 +63,6 @@ class ReactionDeck extends ImmutablePureComponent { static propTypes = { params: PropTypes.object.isRequired, - dispatch: PropTypes.func.isRequired, deck: ImmutablePropTypes.list, emojiMap: ImmutablePropTypes.map, multiColumn: PropTypes.bool, @@ -147,7 +146,7 @@ class ReactionDeck extends ImmutablePureComponent { ))} {provided.placeholder} -