Skip to content

Commit

Permalink
feat: 🐛 fixed label type
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Nov 16, 2022
1 parent 5d09bba commit d3092d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/components/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import React from 'react';
import Icon from '../icon';
import Text from '../text';

type TCheckBoxProps = Omit<React.HTMLProps<HTMLInputElement>, 'value'> & {
type TCheckBoxProps = Omit<React.HTMLProps<HTMLInputElement>, 'value' | 'label'> & {
className?: string;
classNameLabel?: string;
defaultChecked?: boolean;
disabled?: boolean;
greyDisabled?: boolean;
id?: string;
label: string;
label: React.ReactElement;
onChange: (e: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLSpanElement>) => void;
value?: boolean;
withTabIndex?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type TPopoverMessageCheckbox = {
name?: string;
onChange: React.FormEventHandler<HTMLInputElement> &
((e: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLSpanElement>) => void);
checkboxLabel: string;
checkboxLabel: React.ReactElement;
};

const PopoverMessageCheckbox = ({
Expand Down

0 comments on commit d3092d1

Please sign in to comment.