mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
fix lint
This commit is contained in:
parent
72950bcbaa
commit
48aaf6c7be
@ -8,19 +8,17 @@ function gerArrayWithEntries (num) {
|
|||||||
}
|
}
|
||||||
export const PARAM_PREFIX = 'param_';
|
export const PARAM_PREFIX = 'param_';
|
||||||
|
|
||||||
const genParams = (input, num = 0, setValue) => {
|
const genParams = (input, num = 0, setValue) => (<div>{gerArrayWithEntries(num).map((v, i) => {
|
||||||
return (<div>{gerArrayWithEntries(num).map((v, i) => {
|
|
||||||
const key = `${PARAM_PREFIX}${i + 1}`;
|
const key = `${PARAM_PREFIX}${i + 1}`;
|
||||||
return (
|
return (
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
label={`Parameter name ${i + 1}`}
|
label={`Parameter name ${i + 1}`}
|
||||||
name={key} key={key}
|
name={key} key={key}
|
||||||
onChange={(value) => setValue(key, value)}
|
onChange={(value) => git statugitsetValue(key, value)}
|
||||||
value={input[key]} />
|
value={input[key]} />
|
||||||
);
|
);
|
||||||
})}</div>);
|
})}</div>);
|
||||||
};
|
|
||||||
|
|
||||||
const AddStrategy = ({
|
const AddStrategy = ({
|
||||||
input,
|
input,
|
||||||
|
@ -53,11 +53,9 @@ export function createStrategy (strategy) {
|
|||||||
|
|
||||||
|
|
||||||
export function removeStrategy (strategy) {
|
export function removeStrategy (strategy) {
|
||||||
return dispatch => {
|
return dispatch => api.remove(strategy)
|
||||||
return api.remove(strategy)
|
|
||||||
.then(() => dispatch(createRemoveStrategy(strategy)))
|
.then(() => dispatch(createRemoveStrategy(strategy)))
|
||||||
.catch(error => dispatch(errorCreatingStrategy(error)));
|
.catch(error => dispatch(errorCreatingStrategy(error)));
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user