Skip to content

Commit

Permalink
Update Document Code Sample
Browse files Browse the repository at this point in the history
The examples for the Components did not have the correct children function parameters type
  • Loading branch information
widoz authored Feb 15, 2024
1 parent 3b8ca56 commit 0137481
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function MyComponent(props) {
}}
}}
>
{({ entities, kind, search }) => (
{(entities, kind, search) => (
<>
<ToggleControl
value={kind.value}
Expand Down Expand Up @@ -155,7 +155,7 @@ export function MyComponent(props) {
onChange={() => {}}
}}
>
{({ entities, _, search }) => (
{(entities, _, search) => (
<>
<SearchControl
onChange={search.onChange}
Expand Down Expand Up @@ -186,7 +186,7 @@ export function MyComponent(props) {
return <CompositeEntitiesByKind
/* ... */
>
{({ entities, kind, search }) => (
{(entities, kind, search) => (
<>
<RadioControl
value={kind.value.first()}
Expand Down

0 comments on commit 0137481

Please sign in to comment.