Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 02b2fe3

Browse files
committed
fix: makes onclick optional
1 parent d0672b3 commit 02b2fe3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/components/molecules/FilterCheckboxCard.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { LabeledCheckboxProps } from './LabeledCheckbox';
33
export interface FilterCheckboxCardProps {
44
className?: string;
55
items: LabeledCheckboxProps[];
6-
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
6+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
77
}
88
declare const FilterCheckboxCard: FC<FilterCheckboxCardProps>;
99
export default FilterCheckboxCard;

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.modern.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/molecules/FilterCheckboxCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import LabeledCheckbox, { LabeledCheckboxProps } from './LabeledCheckbox'
44
export interface FilterCheckboxCardProps {
55
className?: string
66
items: LabeledCheckboxProps[]
7-
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void
7+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void
88
}
99

1010
const FilterCheckboxCard: FC<FilterCheckboxCardProps> = ({ className = '', onClick, items }) => (

0 commit comments

Comments
 (0)