Skip to content

Commit

Permalink
Make tests for CheckboxGroup pass by adding explicit type information…
Browse files Browse the repository at this point in the history
… to render props
  • Loading branch information
ty2k committed Sep 11, 2024
1 parent bd6f5ce commit 400cd6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
CheckboxGroup as ReactAriaCheckboxGroup,
CheckboxGroupRenderProps,
FieldError,
Label,
Text,
Expand Down Expand Up @@ -40,7 +41,7 @@ export default function CheckboxGroup({
className={`bcds-react-aria-CheckboxGroup flex-wrap-${flexWrap}`}
{...props}
>
{({ isRequired, isInvalid }) => (
{({ isRequired, isInvalid }: CheckboxGroupRenderProps) => (
<>
{label && (
<Label className="bcds-react-aria-CheckboxGroup--label">
Expand Down

0 comments on commit 400cd6c

Please sign in to comment.