From 97b945eafa5817d0d3ee6a167a319f78ca45f2f3 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 11 Oct 2022 12:05:34 +0200 Subject: [PATCH] Remove unused `redux_helpers` module --- app/javascript/flavours/glitch/utils/redux_helpers.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 app/javascript/flavours/glitch/utils/redux_helpers.js 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)); -} -- 2.47.3