github.com/argoproj/argo-cd@v1.8.7/ui/src/app/shared/components/checkbox/checkbox-field.tsx (about) 1 import {Checkbox} from 'argo-ui'; 2 import * as React from 'react'; 3 import * as ReactForm from 'react-form'; 4 5 export const CheckboxField = ReactForm.FormField((props: {fieldApi: ReactForm.FieldApi; className: string; checked: boolean}) => { 6 const { 7 fieldApi: {getValue, setValue} 8 } = props; 9 10 return <Checkbox checked={!!getValue()} onChange={setValue} />; 11 });