X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2820212ec0df02a85ae74ede8c52d3b5e936c6aa..2a1d30b31a3d93d94ea0651dc7c8944d83a11e9e:/src/components/checkbox-field/checkbox-field.tsx?ds=sidebyside

diff --git a/src/components/checkbox-field/checkbox-field.tsx b/src/components/checkbox-field/checkbox-field.tsx
index b8f18e7f..a5d5b285 100644
--- a/src/components/checkbox-field/checkbox-field.tsx
+++ b/src/components/checkbox-field/checkbox-field.tsx
@@ -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
