mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
fix: lint
This commit is contained in:
parent
9a24743764
commit
2ef640f506
@ -11,7 +11,4 @@ const mapStateToProps = state => ({
|
|||||||
uiConfig: state.uiConfig.toJS(),
|
uiConfig: state.uiConfig.toJS(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ShowApiDetailsComponent);
|
|
||||||
|
@ -16,12 +16,9 @@ const mapStateToProps = (state, props) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const Constainer = connect(
|
const Constainer = connect(mapStateToProps, {
|
||||||
mapStateToProps,
|
fetchApplication,
|
||||||
{
|
storeApplicationMetaData,
|
||||||
fetchApplication,
|
})(ApplicationEdit);
|
||||||
storeApplicationMetaData,
|
|
||||||
}
|
|
||||||
)(ApplicationEdit);
|
|
||||||
|
|
||||||
export default Constainer;
|
export default Constainer;
|
||||||
|
@ -4,9 +4,6 @@ import { fetchAll } from './../../store/application/actions';
|
|||||||
|
|
||||||
const mapStateToProps = state => ({ applications: state.applications.get('list').toJS() });
|
const mapStateToProps = state => ({ applications: state.applications.get('list').toJS() });
|
||||||
|
|
||||||
const Container = connect(
|
const Container = connect(mapStateToProps, { fetchAll })(ApplicationList);
|
||||||
mapStateToProps,
|
|
||||||
{ fetchAll }
|
|
||||||
)(ApplicationList);
|
|
||||||
|
|
||||||
export default Container;
|
export default Container;
|
||||||
|
@ -11,9 +11,6 @@ const mapDispatchToProps = {
|
|||||||
updateSetting: updateSettingForGroup('feature'),
|
updateSetting: updateSettingForGroup('feature'),
|
||||||
};
|
};
|
||||||
|
|
||||||
const ArchiveListContainer = connect(
|
const ArchiveListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(FeatureListComponent);
|
|
||||||
|
|
||||||
export default ArchiveListContainer;
|
export default ArchiveListContainer;
|
||||||
|
@ -4,9 +4,6 @@ import { fetchClientInstances } from '../../store/client-instance-actions';
|
|||||||
|
|
||||||
const mapStateToProps = state => ({ clientInstances: state.clientInstances.toJS() });
|
const mapStateToProps = state => ({ clientInstances: state.clientInstances.toJS() });
|
||||||
|
|
||||||
const StrategiesContainer = connect(
|
const StrategiesContainer = connect(mapStateToProps, { fetchClientInstances })(ClientInstances);
|
||||||
mapStateToProps,
|
|
||||||
{ fetchClientInstances }
|
|
||||||
)(ClientInstances);
|
|
||||||
|
|
||||||
export default StrategiesContainer;
|
export default StrategiesContainer;
|
||||||
|
@ -17,9 +17,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
submit: contextField => createContextField(contextField)(dispatch),
|
submit: contextField => createContextField(contextField)(dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
const FormAddContainer = connect(
|
const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ContextComponent);
|
|
||||||
|
|
||||||
export default FormAddContainer;
|
export default FormAddContainer;
|
||||||
|
@ -18,9 +18,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
editMode: true,
|
editMode: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const FormAddContainer = connect(
|
const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ContextComponent);
|
|
||||||
|
|
||||||
export default FormAddContainer;
|
export default FormAddContainer;
|
||||||
|
@ -22,9 +22,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
fetchContext: () => fetchContext()(dispatch),
|
fetchContext: () => fetchContext()(dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
const ContextFieldListContainer = connect(
|
const ContextFieldListContainer = connect(mapStateToProps, mapDispatchToProps)(ContextFieldListComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ContextFieldListComponent);
|
|
||||||
|
|
||||||
export default ContextFieldListContainer;
|
export default ContextFieldListContainer;
|
||||||
|
@ -13,7 +13,4 @@ const mapStateToProps = state => ({
|
|||||||
.reverse(),
|
.reverse(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(ErrorComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ErrorComponent);
|
|
||||||
|
@ -116,9 +116,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
createFeatureToggles: featureToggle => createFeatureToggles(featureToggle)(dispatch),
|
createFeatureToggles: featureToggle => createFeatureToggles(featureToggle)(dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
const FormAddContainer = connect(
|
const FormAddContainer = connect(() => ({}), mapDispatchToProps)(WrapperComponent);
|
||||||
() => ({}),
|
|
||||||
mapDispatchToProps
|
|
||||||
)(WrapperComponent);
|
|
||||||
|
|
||||||
export default FormAddContainer;
|
export default FormAddContainer;
|
||||||
|
@ -13,9 +13,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
fetchFeatureToggles: () => fetchFeatureToggles()(dispatch),
|
fetchFeatureToggles: () => fetchFeatureToggles()(dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
const FormAddContainer = connect(
|
const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(CopyFeatureComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(CopyFeatureComponent);
|
|
||||||
|
|
||||||
export default FormAddContainer;
|
export default FormAddContainer;
|
||||||
|
@ -71,7 +71,4 @@ const actions = createActions({
|
|||||||
prepare,
|
prepare,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);
|
||||||
mapStateToProps,
|
|
||||||
actions
|
|
||||||
)(UpdateFeatureToggleComponent);
|
|
||||||
|
@ -36,7 +36,4 @@ const actions = createActions({
|
|||||||
prepare,
|
prepare,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, actions)(ViewFeatureToggleComponent);
|
||||||
mapStateToProps,
|
|
||||||
actions
|
|
||||||
)(ViewFeatureToggleComponent);
|
|
||||||
|
@ -78,9 +78,6 @@ const mapDispatchToProps = {
|
|||||||
updateSetting: updateSettingForGroup('feature'),
|
updateSetting: updateSettingForGroup('feature'),
|
||||||
};
|
};
|
||||||
|
|
||||||
const FeatureListContainer = connect(
|
const FeatureListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(FeatureListComponent);
|
|
||||||
|
|
||||||
export default FeatureListContainer;
|
export default FeatureListContainer;
|
||||||
|
@ -64,7 +64,4 @@ const actions = createActions({
|
|||||||
prepare,
|
prepare,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);
|
||||||
mapStateToProps,
|
|
||||||
actions
|
|
||||||
)(UpdateFeatureToggleComponent);
|
|
||||||
|
@ -9,9 +9,6 @@ const mapStateToProps = state => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const HistoryListContainer = connect(
|
const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent);
|
||||||
mapStateToProps,
|
|
||||||
{ fetchHistory }
|
|
||||||
)(HistoryComponent);
|
|
||||||
|
|
||||||
export default HistoryListContainer;
|
export default HistoryListContainer;
|
||||||
|
@ -11,11 +11,8 @@ const mapStateToProps = state => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const HistoryListContainer = connect(
|
const HistoryListContainer = connect(mapStateToProps, {
|
||||||
mapStateToProps,
|
updateSetting: updateSettingForGroup('history'),
|
||||||
{
|
})(HistoryListToggleComponent);
|
||||||
updateSetting: updateSettingForGroup('history'),
|
|
||||||
}
|
|
||||||
)(HistoryListToggleComponent);
|
|
||||||
|
|
||||||
export default HistoryListContainer;
|
export default HistoryListContainer;
|
||||||
|
@ -18,11 +18,8 @@ const mapStateToProps = (state, props) => ({
|
|||||||
history: getHistoryFromToggle(state, props.toggleName),
|
history: getHistoryFromToggle(state, props.toggleName),
|
||||||
});
|
});
|
||||||
|
|
||||||
const HistoryListToggleContainer = connect(
|
const HistoryListToggleContainer = connect(mapStateToProps, {
|
||||||
mapStateToProps,
|
fetchHistoryForToggle,
|
||||||
{
|
})(HistoryListToggleComponent);
|
||||||
fetchHistoryForToggle,
|
|
||||||
}
|
|
||||||
)(HistoryListToggleComponent);
|
|
||||||
|
|
||||||
export default HistoryListToggleContainer;
|
export default HistoryListToggleContainer;
|
||||||
|
@ -53,7 +53,6 @@ class HeaderComponent extends PureComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default connect(
|
export default connect(state => ({ uiConfig: state.uiConfig.toJS() }), { fetchUIConfig, fetchContext })(
|
||||||
state => ({ uiConfig: state.uiConfig.toJS() }),
|
HeaderComponent
|
||||||
{ fetchUIConfig, fetchContext }
|
);
|
||||||
)(HeaderComponent);
|
|
||||||
|
@ -57,7 +57,4 @@ const actions = createActions({
|
|||||||
prepare,
|
prepare,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, actions)(AddStrategy);
|
||||||
mapStateToProps,
|
|
||||||
actions
|
|
||||||
)(AddStrategy);
|
|
||||||
|
@ -22,9 +22,6 @@ const mapDispatchToProps = dispatch => ({
|
|||||||
fetchStrategies: () => fetchStrategies()(dispatch),
|
fetchStrategies: () => fetchStrategies()(dispatch),
|
||||||
});
|
});
|
||||||
|
|
||||||
const StrategiesListContainer = connect(
|
const StrategiesListContainer = connect(mapStateToProps, mapDispatchToProps)(StrategiesListComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(StrategiesListComponent);
|
|
||||||
|
|
||||||
export default StrategiesListContainer;
|
export default StrategiesListContainer;
|
||||||
|
@ -22,13 +22,10 @@ const mapStateToProps = (state, props) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const Constainer = connect(
|
const Constainer = connect(mapStateToProps, {
|
||||||
mapStateToProps,
|
fetchStrategies,
|
||||||
{
|
fetchApplications: fetchAll,
|
||||||
fetchStrategies,
|
fetchFeatureToggles,
|
||||||
fetchApplications: fetchAll,
|
})(ShowStrategy);
|
||||||
fetchFeatureToggles,
|
|
||||||
}
|
|
||||||
)(ShowStrategy);
|
|
||||||
|
|
||||||
export default Constainer;
|
export default Constainer;
|
||||||
|
@ -12,7 +12,4 @@ const mapStateToProps = state => ({
|
|||||||
user: state.user.toJS(),
|
user: state.user.toJS(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(AuthenticationComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(AuthenticationComponent);
|
|
||||||
|
@ -8,7 +8,4 @@ const mapDispatchToProps = {
|
|||||||
|
|
||||||
const mapStateToProps = () => ({});
|
const mapStateToProps = () => ({});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(LogoutComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(LogoutComponent);
|
|
||||||
|
@ -13,7 +13,4 @@ const mapStateToProps = state => ({
|
|||||||
location: state.settings ? state.settings.toJS().location : {},
|
location: state.settings ? state.settings.toJS().location : {},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(ShowUserComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ShowUserComponent);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user