diff --git a/frontend/src/component/api/show-api-details-container.jsx b/frontend/src/component/api/show-api-details-container.jsx index 35d681fc66..fbd71fc284 100644 --- a/frontend/src/component/api/show-api-details-container.jsx +++ b/frontend/src/component/api/show-api-details-container.jsx @@ -11,7 +11,4 @@ const mapStateToProps = state => ({ uiConfig: state.uiConfig.toJS(), }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(ShowApiDetailsComponent); +export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent); diff --git a/frontend/src/component/application/application-edit-container.js b/frontend/src/component/application/application-edit-container.js index a7a9fe936c..a3d89b54ba 100644 --- a/frontend/src/component/application/application-edit-container.js +++ b/frontend/src/component/application/application-edit-container.js @@ -16,12 +16,9 @@ const mapStateToProps = (state, props) => { }; }; -const Constainer = connect( - mapStateToProps, - { - fetchApplication, - storeApplicationMetaData, - } -)(ApplicationEdit); +const Constainer = connect(mapStateToProps, { + fetchApplication, + storeApplicationMetaData, +})(ApplicationEdit); export default Constainer; diff --git a/frontend/src/component/application/application-list-container.js b/frontend/src/component/application/application-list-container.js index 6b81b35e6d..eb3809c078 100644 --- a/frontend/src/component/application/application-list-container.js +++ b/frontend/src/component/application/application-list-container.js @@ -4,9 +4,6 @@ import { fetchAll } from './../../store/application/actions'; const mapStateToProps = state => ({ applications: state.applications.get('list').toJS() }); -const Container = connect( - mapStateToProps, - { fetchAll } -)(ApplicationList); +const Container = connect(mapStateToProps, { fetchAll })(ApplicationList); export default Container; diff --git a/frontend/src/component/archive/archive-list-container.js b/frontend/src/component/archive/archive-list-container.js index 2eba8429dd..5c12f58e06 100644 --- a/frontend/src/component/archive/archive-list-container.js +++ b/frontend/src/component/archive/archive-list-container.js @@ -11,9 +11,6 @@ const mapDispatchToProps = { updateSetting: updateSettingForGroup('feature'), }; -const ArchiveListContainer = connect( - mapStateToProps, - mapDispatchToProps -)(FeatureListComponent); +const ArchiveListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent); export default ArchiveListContainer; diff --git a/frontend/src/component/client-instance/client-instance-container.js b/frontend/src/component/client-instance/client-instance-container.js index 6cbe3762b4..f150c6d948 100644 --- a/frontend/src/component/client-instance/client-instance-container.js +++ b/frontend/src/component/client-instance/client-instance-container.js @@ -4,9 +4,6 @@ import { fetchClientInstances } from '../../store/client-instance-actions'; const mapStateToProps = state => ({ clientInstances: state.clientInstances.toJS() }); -const StrategiesContainer = connect( - mapStateToProps, - { fetchClientInstances } -)(ClientInstances); +const StrategiesContainer = connect(mapStateToProps, { fetchClientInstances })(ClientInstances); export default StrategiesContainer; diff --git a/frontend/src/component/context/create-context-container.js b/frontend/src/component/context/create-context-container.js index 97fe830620..f575e9c444 100644 --- a/frontend/src/component/context/create-context-container.js +++ b/frontend/src/component/context/create-context-container.js @@ -17,9 +17,6 @@ const mapDispatchToProps = dispatch => ({ submit: contextField => createContextField(contextField)(dispatch), }); -const FormAddContainer = connect( - mapStateToProps, - mapDispatchToProps -)(ContextComponent); +const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent); export default FormAddContainer; diff --git a/frontend/src/component/context/edit-context-container.js b/frontend/src/component/context/edit-context-container.js index 0cd6796984..f48a783652 100644 --- a/frontend/src/component/context/edit-context-container.js +++ b/frontend/src/component/context/edit-context-container.js @@ -18,9 +18,6 @@ const mapDispatchToProps = dispatch => ({ editMode: true, }); -const FormAddContainer = connect( - mapStateToProps, - mapDispatchToProps -)(ContextComponent); +const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent); export default FormAddContainer; diff --git a/frontend/src/component/context/list-container.jsx b/frontend/src/component/context/list-container.jsx index 09a7d63339..c6de606161 100644 --- a/frontend/src/component/context/list-container.jsx +++ b/frontend/src/component/context/list-container.jsx @@ -22,9 +22,6 @@ const mapDispatchToProps = dispatch => ({ fetchContext: () => fetchContext()(dispatch), }); -const ContextFieldListContainer = connect( - mapStateToProps, - mapDispatchToProps -)(ContextFieldListComponent); +const ContextFieldListContainer = connect(mapStateToProps, mapDispatchToProps)(ContextFieldListComponent); export default ContextFieldListContainer; diff --git a/frontend/src/component/error/error-container.jsx b/frontend/src/component/error/error-container.jsx index 3cce52d6bd..8c536364f5 100644 --- a/frontend/src/component/error/error-container.jsx +++ b/frontend/src/component/error/error-container.jsx @@ -13,7 +13,4 @@ const mapStateToProps = state => ({ .reverse(), }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(ErrorComponent); +export default connect(mapStateToProps, mapDispatchToProps)(ErrorComponent); diff --git a/frontend/src/component/feature/form/form-add-feature-container.jsx b/frontend/src/component/feature/form/form-add-feature-container.jsx index 5f894cf122..5ac2fbbe52 100644 --- a/frontend/src/component/feature/form/form-add-feature-container.jsx +++ b/frontend/src/component/feature/form/form-add-feature-container.jsx @@ -116,9 +116,6 @@ const mapDispatchToProps = dispatch => ({ createFeatureToggles: featureToggle => createFeatureToggles(featureToggle)(dispatch), }); -const FormAddContainer = connect( - () => ({}), - mapDispatchToProps -)(WrapperComponent); +const FormAddContainer = connect(() => ({}), mapDispatchToProps)(WrapperComponent); export default FormAddContainer; diff --git a/frontend/src/component/feature/form/form-copy-feature-container.jsx b/frontend/src/component/feature/form/form-copy-feature-container.jsx index 99f847ab4a..d553df97bb 100644 --- a/frontend/src/component/feature/form/form-copy-feature-container.jsx +++ b/frontend/src/component/feature/form/form-copy-feature-container.jsx @@ -13,9 +13,6 @@ const mapDispatchToProps = dispatch => ({ fetchFeatureToggles: () => fetchFeatureToggles()(dispatch), }); -const FormAddContainer = connect( - mapStateToProps, - mapDispatchToProps -)(CopyFeatureComponent); +const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(CopyFeatureComponent); export default FormAddContainer; diff --git a/frontend/src/component/feature/form/form-update-feature-container.jsx b/frontend/src/component/feature/form/form-update-feature-container.jsx index 5791969c0d..b643bde3ae 100644 --- a/frontend/src/component/feature/form/form-update-feature-container.jsx +++ b/frontend/src/component/feature/form/form-update-feature-container.jsx @@ -71,7 +71,4 @@ const actions = createActions({ prepare, }); -export default connect( - mapStateToProps, - actions -)(UpdateFeatureToggleComponent); +export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent); diff --git a/frontend/src/component/feature/form/form-view-feature-container.jsx b/frontend/src/component/feature/form/form-view-feature-container.jsx index f9933ccc9c..1f7dc4c463 100644 --- a/frontend/src/component/feature/form/form-view-feature-container.jsx +++ b/frontend/src/component/feature/form/form-view-feature-container.jsx @@ -36,7 +36,4 @@ const actions = createActions({ prepare, }); -export default connect( - mapStateToProps, - actions -)(ViewFeatureToggleComponent); +export default connect(mapStateToProps, actions)(ViewFeatureToggleComponent); diff --git a/frontend/src/component/feature/list-container.jsx b/frontend/src/component/feature/list-container.jsx index bea5b216db..49a1150a9c 100644 --- a/frontend/src/component/feature/list-container.jsx +++ b/frontend/src/component/feature/list-container.jsx @@ -78,9 +78,6 @@ const mapDispatchToProps = { updateSetting: updateSettingForGroup('feature'), }; -const FeatureListContainer = connect( - mapStateToProps, - mapDispatchToProps -)(FeatureListComponent); +const FeatureListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent); export default FeatureListContainer; diff --git a/frontend/src/component/feature/variant/update-variant-container.jsx b/frontend/src/component/feature/variant/update-variant-container.jsx index be116d7eb7..14733bc012 100644 --- a/frontend/src/component/feature/variant/update-variant-container.jsx +++ b/frontend/src/component/feature/variant/update-variant-container.jsx @@ -64,7 +64,4 @@ const actions = createActions({ prepare, }); -export default connect( - mapStateToProps, - actions -)(UpdateFeatureToggleComponent); +export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent); diff --git a/frontend/src/component/history/history-container.js b/frontend/src/component/history/history-container.js index 16879af2bd..ee79b6cd61 100644 --- a/frontend/src/component/history/history-container.js +++ b/frontend/src/component/history/history-container.js @@ -9,9 +9,6 @@ const mapStateToProps = state => { }; }; -const HistoryListContainer = connect( - mapStateToProps, - { fetchHistory } -)(HistoryComponent); +const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent); export default HistoryListContainer; diff --git a/frontend/src/component/history/history-list-container.jsx b/frontend/src/component/history/history-list-container.jsx index b2fd702b41..5cbfb3d388 100644 --- a/frontend/src/component/history/history-list-container.jsx +++ b/frontend/src/component/history/history-list-container.jsx @@ -11,11 +11,8 @@ const mapStateToProps = state => { }; }; -const HistoryListContainer = connect( - mapStateToProps, - { - updateSetting: updateSettingForGroup('history'), - } -)(HistoryListToggleComponent); +const HistoryListContainer = connect(mapStateToProps, { + updateSetting: updateSettingForGroup('history'), +})(HistoryListToggleComponent); export default HistoryListContainer; diff --git a/frontend/src/component/history/history-list-toggle-container.jsx b/frontend/src/component/history/history-list-toggle-container.jsx index a620698ee8..d581685a20 100644 --- a/frontend/src/component/history/history-list-toggle-container.jsx +++ b/frontend/src/component/history/history-list-toggle-container.jsx @@ -18,11 +18,8 @@ const mapStateToProps = (state, props) => ({ history: getHistoryFromToggle(state, props.toggleName), }); -const HistoryListToggleContainer = connect( - mapStateToProps, - { - fetchHistoryForToggle, - } -)(HistoryListToggleComponent); +const HistoryListToggleContainer = connect(mapStateToProps, { + fetchHistoryForToggle, +})(HistoryListToggleComponent); export default HistoryListToggleContainer; diff --git a/frontend/src/component/menu/header.jsx b/frontend/src/component/menu/header.jsx index c9a7046214..67e2be7afd 100644 --- a/frontend/src/component/menu/header.jsx +++ b/frontend/src/component/menu/header.jsx @@ -53,7 +53,6 @@ class HeaderComponent extends PureComponent { } } -export default connect( - state => ({ uiConfig: state.uiConfig.toJS() }), - { fetchUIConfig, fetchContext } -)(HeaderComponent); +export default connect(state => ({ uiConfig: state.uiConfig.toJS() }), { fetchUIConfig, fetchContext })( + HeaderComponent +); diff --git a/frontend/src/component/strategies/edit-container.js b/frontend/src/component/strategies/edit-container.js index 5f076552d0..adcb05da7d 100644 --- a/frontend/src/component/strategies/edit-container.js +++ b/frontend/src/component/strategies/edit-container.js @@ -57,7 +57,4 @@ const actions = createActions({ prepare, }); -export default connect( - mapStateToProps, - actions -)(AddStrategy); +export default connect(mapStateToProps, actions)(AddStrategy); diff --git a/frontend/src/component/strategies/list-container.jsx b/frontend/src/component/strategies/list-container.jsx index a4917975eb..a71e7431f4 100644 --- a/frontend/src/component/strategies/list-container.jsx +++ b/frontend/src/component/strategies/list-container.jsx @@ -22,9 +22,6 @@ const mapDispatchToProps = dispatch => ({ fetchStrategies: () => fetchStrategies()(dispatch), }); -const StrategiesListContainer = connect( - mapStateToProps, - mapDispatchToProps -)(StrategiesListComponent); +const StrategiesListContainer = connect(mapStateToProps, mapDispatchToProps)(StrategiesListComponent); export default StrategiesListContainer; diff --git a/frontend/src/component/strategies/strategy-details-container.js b/frontend/src/component/strategies/strategy-details-container.js index 966de43851..95087ba166 100644 --- a/frontend/src/component/strategies/strategy-details-container.js +++ b/frontend/src/component/strategies/strategy-details-container.js @@ -22,13 +22,10 @@ const mapStateToProps = (state, props) => { }; }; -const Constainer = connect( - mapStateToProps, - { - fetchStrategies, - fetchApplications: fetchAll, - fetchFeatureToggles, - } -)(ShowStrategy); +const Constainer = connect(mapStateToProps, { + fetchStrategies, + fetchApplications: fetchAll, + fetchFeatureToggles, +})(ShowStrategy); export default Constainer; diff --git a/frontend/src/component/user/authentication-container.jsx b/frontend/src/component/user/authentication-container.jsx index 37843fca4a..edc26c530e 100644 --- a/frontend/src/component/user/authentication-container.jsx +++ b/frontend/src/component/user/authentication-container.jsx @@ -12,7 +12,4 @@ const mapStateToProps = state => ({ user: state.user.toJS(), }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(AuthenticationComponent); +export default connect(mapStateToProps, mapDispatchToProps)(AuthenticationComponent); diff --git a/frontend/src/component/user/logout-container.jsx b/frontend/src/component/user/logout-container.jsx index 2c9c7174dd..115949d841 100644 --- a/frontend/src/component/user/logout-container.jsx +++ b/frontend/src/component/user/logout-container.jsx @@ -8,7 +8,4 @@ const mapDispatchToProps = { const mapStateToProps = () => ({}); -export default connect( - mapStateToProps, - mapDispatchToProps -)(LogoutComponent); +export default connect(mapStateToProps, mapDispatchToProps)(LogoutComponent); diff --git a/frontend/src/component/user/show-user-container.jsx b/frontend/src/component/user/show-user-container.jsx index b6c18817b9..acb836e5ec 100644 --- a/frontend/src/component/user/show-user-container.jsx +++ b/frontend/src/component/user/show-user-container.jsx @@ -13,7 +13,4 @@ const mapStateToProps = state => ({ location: state.settings ? state.settings.toJS().location : {}, }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(ShowUserComponent); +export default connect(mapStateToProps, mapDispatchToProps)(ShowUserComponent);