1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: lint

This commit is contained in:
Ivar Conradi Østhus 2020-04-18 22:06:49 +02:00
parent 9a24743764
commit 2ef640f506
25 changed files with 38 additions and 111 deletions

View File

@ -11,7 +11,4 @@ const mapStateToProps = state => ({
uiConfig: state.uiConfig.toJS(),
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(ShowApiDetailsComponent);
export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent);

View File

@ -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;

View File

@ -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;

View File

@ -11,9 +11,6 @@ const mapDispatchToProps = {
updateSetting: updateSettingForGroup('feature'),
};
const ArchiveListContainer = connect(
mapStateToProps,
mapDispatchToProps
)(FeatureListComponent);
const ArchiveListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
export default ArchiveListContainer;

View File

@ -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;

View File

@ -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;

View File

@ -18,9 +18,6 @@ const mapDispatchToProps = dispatch => ({
editMode: true,
});
const FormAddContainer = connect(
mapStateToProps,
mapDispatchToProps
)(ContextComponent);
const FormAddContainer = connect(mapStateToProps, mapDispatchToProps)(ContextComponent);
export default FormAddContainer;

View File

@ -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;

View File

@ -13,7 +13,4 @@ const mapStateToProps = state => ({
.reverse(),
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(ErrorComponent);
export default connect(mapStateToProps, mapDispatchToProps)(ErrorComponent);

View File

@ -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;

View File

@ -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;

View File

@ -71,7 +71,4 @@ const actions = createActions({
prepare,
});
export default connect(
mapStateToProps,
actions
)(UpdateFeatureToggleComponent);
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);

View File

@ -36,7 +36,4 @@ const actions = createActions({
prepare,
});
export default connect(
mapStateToProps,
actions
)(ViewFeatureToggleComponent);
export default connect(mapStateToProps, actions)(ViewFeatureToggleComponent);

View File

@ -78,9 +78,6 @@ const mapDispatchToProps = {
updateSetting: updateSettingForGroup('feature'),
};
const FeatureListContainer = connect(
mapStateToProps,
mapDispatchToProps
)(FeatureListComponent);
const FeatureListContainer = connect(mapStateToProps, mapDispatchToProps)(FeatureListComponent);
export default FeatureListContainer;

View File

@ -64,7 +64,4 @@ const actions = createActions({
prepare,
});
export default connect(
mapStateToProps,
actions
)(UpdateFeatureToggleComponent);
export default connect(mapStateToProps, actions)(UpdateFeatureToggleComponent);

View File

@ -9,9 +9,6 @@ const mapStateToProps = state => {
};
};
const HistoryListContainer = connect(
mapStateToProps,
{ fetchHistory }
)(HistoryComponent);
const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent);
export default HistoryListContainer;

View File

@ -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;

View File

@ -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;

View File

@ -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
);

View File

@ -57,7 +57,4 @@ const actions = createActions({
prepare,
});
export default connect(
mapStateToProps,
actions
)(AddStrategy);
export default connect(mapStateToProps, actions)(AddStrategy);

View File

@ -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;

View File

@ -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;

View File

@ -12,7 +12,4 @@ const mapStateToProps = state => ({
user: state.user.toJS(),
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(AuthenticationComponent);
export default connect(mapStateToProps, mapDispatchToProps)(AuthenticationComponent);

View File

@ -8,7 +8,4 @@ const mapDispatchToProps = {
const mapStateToProps = () => ({});
export default connect(
mapStateToProps,
mapDispatchToProps
)(LogoutComponent);
export default connect(mapStateToProps, mapDispatchToProps)(LogoutComponent);

View File

@ -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);