diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-10-11 12:05:34 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-10-11 12:15:29 +0200 |
commit | 2535ec4fcb6247199a5746db1119d3dabed9d559 (patch) | |
tree | 463c6d1011b0ee8d52712f867cb8824401fd1c22 /app | |
parent | 0f4a4d7527433eef6e95c51edea47bcfa33bbf7c (diff) |
Remove unused `redux_helpers` module
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/utils/redux_helpers.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/javascript/flavours/glitch/utils/redux_helpers.js b/app/javascript/flavours/glitch/utils/redux_helpers.js deleted file mode 100644 index 8eb338da7..000000000 --- a/app/javascript/flavours/glitch/utils/redux_helpers.js +++ /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)); -} |