mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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_';
 | 
			
		||||
 | 
			
		||||
const genParams = (input, num = 0, setValue) => {
 | 
			
		||||
    return (<div>{gerArrayWithEntries(num).map((v, i) => {
 | 
			
		||||
        const key = `${PARAM_PREFIX}${i + 1}`;
 | 
			
		||||
        return (
 | 
			
		||||
            <Input
 | 
			
		||||
                type="text"
 | 
			
		||||
                label={`Parameter name ${i + 1}`}
 | 
			
		||||
                name={key} key={key}
 | 
			
		||||
                onChange={(value) => setValue(key, value)}
 | 
			
		||||
                value={input[key]} />
 | 
			
		||||
        );
 | 
			
		||||
    })}</div>);
 | 
			
		||||
};
 | 
			
		||||
const genParams = (input, num = 0, setValue) => (<div>{gerArrayWithEntries(num).map((v, i) => {
 | 
			
		||||
    const key = `${PARAM_PREFIX}${i + 1}`;
 | 
			
		||||
    return (
 | 
			
		||||
        <Input
 | 
			
		||||
            type="text"
 | 
			
		||||
            label={`Parameter name ${i + 1}`}
 | 
			
		||||
            name={key} key={key}
 | 
			
		||||
            onChange={(value) => git statugitsetValue(key, value)}
 | 
			
		||||
            value={input[key]} />
 | 
			
		||||
    );
 | 
			
		||||
})}</div>);
 | 
			
		||||
 | 
			
		||||
const AddStrategy = ({
 | 
			
		||||
    input,
 | 
			
		||||
 | 
			
		||||
@ -53,11 +53,9 @@ export function createStrategy (strategy) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export function removeStrategy (strategy) {
 | 
			
		||||
    return dispatch => {
 | 
			
		||||
        return api.remove(strategy)
 | 
			
		||||
    return dispatch => api.remove(strategy)
 | 
			
		||||
            .then(() => dispatch(createRemoveStrategy(strategy)))
 | 
			
		||||
            .catch(error => dispatch(errorCreatingStrategy(error)));
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user