Merge branch 'master' into 14452-my-account
[arvados-workbench2.git] / src / views / run-process-panel / inputs / boolean-input.tsx
index 04d702fdd0f5207ef2fa01643363033612b8652e..6a214e9dd846aa0a6907bbefbdfd6cc47e7680e2 100644 (file)
@@ -27,12 +27,12 @@ const BooleanInputComponent = (props: GenericInputProps) =>
         component={Input}
         {...props} />;
 
-const Input = (props: GenericInputProps) =>
+const Input = ({ input, commandInput }: GenericInputProps) =>
     <Switch
         color='primary'
-        checked={props.input.value}
-        onChange={handleChange(props.input.onChange, props.input.value)}
-        disabled={props.commandInput.disabled} />;
+        checked={input.value}
+        onChange={handleChange(input.onChange, input.value)}
+        disabled={commandInput.disabled} />;
 
 const handleChange = memoize(
     (onChange: (value: string) => void, value: string) => () => onChange(value)