about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/list_adder/components/list.jsx
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-27 12:49:33 +0200
committerGitHub <noreply@github.com>2023-03-27 12:49:33 +0200
commitcbdb25ab0343603165fc89fd28b07c9ca0f2ae6d (patch)
treedc8aa1aa2449f54b530df0b251f7d126df0e525f /app/javascript/flavours/glitch/features/list_adder/components/list.jsx
parent81e85782d1cf595310180c3106ed92682045b5fd (diff)
parent8215df76c070f7d400a6091fcb1c0f6ff78474a0 (diff)
Merge pull request #2151 from ClearlyClaire/glitch-soc/main
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/features/list_adder/components/list.jsx')
-rw-r--r--app/javascript/flavours/glitch/features/list_adder/components/list.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/list_adder/components/list.jsx b/app/javascript/flavours/glitch/features/list_adder/components/list.jsx
index 4666ca47b..1957bbe42 100644
--- a/app/javascript/flavours/glitch/features/list_adder/components/list.jsx
+++ b/app/javascript/flavours/glitch/features/list_adder/components/list.jsx
@@ -13,7 +13,7 @@ const messages = defineMessages({
   add: { id: 'lists.account.add', defaultMessage: 'Add to list' },
 });
 
-const MapStateToProps = (state, { listId, added }) => ({
+const mapStateToProps = (state, { listId, added }) => ({
   list: state.get('lists').get(listId),
   added: typeof added === 'undefined' ? state.getIn(['listAdder', 'lists', 'items']).includes(listId) : added,
 });
@@ -23,8 +23,6 @@ const mapDispatchToProps = (dispatch, { listId }) => ({
   onAdd: () => dispatch(addToListAdder(listId)),
 });
 
-export default @connect(MapStateToProps, mapDispatchToProps)
-@injectIntl
 class List extends ImmutablePureComponent {
 
   static propTypes = {
@@ -67,3 +65,5 @@ class List extends ImmutablePureComponent {
   }
 
 }
+
+export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(List));