Skip to content

Commit

Permalink
fix: configure margin bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 6, 2023
1 parent b532f13 commit b658664
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/form/CheckboxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ import { form as formTypography } from '../../theme/typography';
import ClickableTooltip from '../ClickableTooltip';

export interface CheckboxFieldProps extends Omit<CheckboxProps, 'defaultValue'> {
formControlLabelProps: Omit<FormControlLabelProps, 'control'>,
validate?: FieldValidator | BooleanSchema,
name: string
formControlLabelProps: Omit<FormControlLabelProps, 'control'>;
validate?: FieldValidator | BooleanSchema;
marginBottom?: number | string;
name: string;
}

const CheckboxField: React.FC<CheckboxFieldProps> = ({
formControlLabelProps,
validate = YupBool(),
required = false,
marginBottom = formTypography.marginBottom,
name,
onChange,
...otherCheckboxProps
Expand Down Expand Up @@ -79,7 +81,7 @@ const CheckboxField: React.FC<CheckboxFieldProps> = ({
direction='row'
alignItems='center'
marginLeft='-12px'
marginBottom={formTypography.marginBottom}
marginBottom={marginBottom}
gap={1}
>
<FormControlLabel
Expand Down

0 comments on commit b658664

Please sign in to comment.