Skip to content

Commit

Permalink
feat: 🚧 setting type for custom event
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Oct 19, 2022
1 parent ef53a37 commit 3d26844
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Text from '../text';
type TCompositeCheckbox = {
name: string;
value: boolean;
onChange: (e: { target: { value: boolean } }) => void;
onChange: (e: React.SyntheticEvent) => void;
className?: string;
label: string;
id?: string;
Expand All @@ -31,7 +31,7 @@ const CompositeCheckbox = ({
target: {
value: !value,
},
});
} as any);
};

return (
Expand Down

0 comments on commit 3d26844

Please sign in to comment.