github.com/argoproj/argo-cd/v2@v2.10.9/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; id: string; className: string; checked: boolean}) => { 6 const { 7 fieldApi: {getValue, setValue} 8 } = props; 9 10 return <Checkbox id={props.id} checked={!!getValue()} onChange={setValue} />; 11 });