]> cat aescling's git repositories - mastodon.git/commitdiff
Remove unused `redux_helpers` module
authorClaire <claire.github-309c@sitedethib.com>
Tue, 11 Oct 2022 10:05:34 +0000 (12:05 +0200)
committeraescling <aescling+gitlab@cat.family>
Thu, 17 Nov 2022 05:28:26 +0000 (00:28 -0500)
app/javascript/flavours/glitch/utils/redux_helpers.js [deleted file]

diff --git a/app/javascript/flavours/glitch/utils/redux_helpers.js b/app/javascript/flavours/glitch/utils/redux_helpers.js
deleted file mode 100644 (file)
index 8eb338d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-import { injectIntl } from 'react-intl';
-import { connect } from 'react-redux';
-
-//  Connects a component.
-export function wrap (Component, mapStateToProps, mapDispatchToProps, options) {
-  const withIntl = typeof options === 'object' ? options.withIntl : !!options;
-  return (withIntl ? injectIntl : i => i)(connect(mapStateToProps, mapDispatchToProps)(Component));
-}