Merge branch 'master' into #15165-running-a-process-from-workflow-section-doesnt...
[arvados-workbench2.git] / src / components / checkbox-field / checkbox-field.tsx
index b8f18e7fdc99520b977a12b38b6a8e3a003e3e8b..a5d5b285c3e24934c8c5c849b24ea51387b85a0c 100644 (file)
@@ -4,24 +4,16 @@
 
 import * as React from 'react';
 import { WrappedFieldProps } from 'redux-form';
-import { ArvadosTheme } from '~/common/custom-theme';
-import { FormControlLabel, Checkbox, StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core';
+import { FormControlLabel, Checkbox } from '@material-ui/core';
 
-type CssRules = 'checkboxField';
-
-const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
-    checkboxField: {
-        
-    }
-});
-
-export const CheckboxField = withStyles(styles)((props: WrappedFieldProps & WithStyles<CssRules> & { label?: string }) =>
+export const CheckboxField = (props: WrappedFieldProps & { label?: string }) =>
     <FormControlLabel
         control={
             <Checkbox
                 checked={props.input.value}
                 onChange={props.input.onChange}
+                disabled={props.meta.submitting}
                 color="primary" />
         }
         label={props.label} 
-    />);
\ No newline at end of file
+    />;
\ No newline at end of file