change style for confirmation dialog actions content
[arvados-workbench2.git] / src / components / checkbox-field / checkbox-field.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from 'react';
6 import { WrappedFieldProps } from 'redux-form';
7 import { FormControlLabel, Checkbox } from '@material-ui/core';
8
9 export const CheckboxField = (props: WrappedFieldProps & { label?: string }) =>
10     <FormControlLabel
11         control={
12             <Checkbox
13                 checked={props.input.value}
14                 onChange={props.input.onChange}
15                 disabled={props.meta.submitting}
16                 color="primary" />
17         }
18         label={props.label} 
19     />;