mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: lint
This commit is contained in:
parent
9a24743764
commit
2ef640f506
@ -11,7 +11,4 @@ const mapStateToProps = state => ({
|
||||
uiConfig: state.uiConfig.toJS(),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ShowApiDetailsComponent);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -11,9 +11,6 @@ const mapDispatchToProps = {
|
||||
updateSetting: updateSettingForGroup('feature'),
|
||||
};
|
||||
|
||||
const ArchiveListContainer = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(FeatureListComponent);
|
||||
const ArchiveListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
|
||||
|
||||
export default ArchiveListContainer;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -18,9 +18,6 @@ const mapDispatchToProps = dispatch => ({
|
||||
editMode: true,
|
||||
});
|
||||
|
||||
const FormAddContainer = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ContextComponent);
|
||||
const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent);
|
||||
|
||||
export default FormAddContainer;
|
||||
|
@ -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;
|
||||
|
@ -13,7 +13,4 @@ const mapStateToProps = state => ({
|
||||
.reverse(),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ErrorComponent);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ErrorComponent);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -71,7 +71,4 @@ const actions = createActions({
|
||||
prepare,
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
actions
|
||||
)(UpdateFeatureToggleComponent);
|
||||
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);
|
||||
|
@ -36,7 +36,4 @@ const actions = createActions({
|
||||
prepare,
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
actions
|
||||
)(ViewFeatureToggleComponent);
|
||||
export default connect(mapStateToProps, actions)(ViewFeatureToggleComponent);
|
||||
|
@ -78,9 +78,6 @@ const mapDispatchToProps = {
|
||||
updateSetting: updateSettingForGroup('feature'),
|
||||
};
|
||||
|
||||
const FeatureListContainer = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(FeatureListComponent);
|
||||
const FeatureListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
|
||||
|
||||
export default FeatureListContainer;
|
||||
|
@ -64,7 +64,4 @@ const actions = createActions({
|
||||
prepare,
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
actions
|
||||
)(UpdateFeatureToggleComponent);
|
||||
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);
|
||||
|
@ -9,9 +9,6 @@ const mapStateToProps = state => {
|
||||
};
|
||||
};
|
||||
|
||||
const HistoryListContainer = connect(
|
||||
mapStateToProps,
|
||||
{ fetchHistory }
|
||||
)(HistoryComponent);
|
||||
const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent);
|
||||
|
||||
export default HistoryListContainer;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
);
|
||||
|
@ -57,7 +57,4 @@ const actions = createActions({
|
||||
prepare,
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
actions
|
||||
)(AddStrategy);
|
||||
export default connect(mapStateToProps, actions)(AddStrategy);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -12,7 +12,4 @@ const mapStateToProps = state => ({
|
||||
user: state.user.toJS(),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(AuthenticationComponent);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(AuthenticationComponent);
|
||||
|
@ -8,7 +8,4 @@ const mapDispatchToProps = {
|
||||
|
||||
const mapStateToProps = () => ({});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(LogoutComponent);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(LogoutComponent);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user