Skip to content

Commit

Permalink
chore: synchronize type-react dependencies (#4659)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Nov 18, 2024
1 parent fbd4835 commit 195b9ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 64 deletions.
54 changes: 4 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ export default function ListingProvider({
engine={hydratedState.engine}
controllers={hydratedState.controllers}
>
<>{children}</>
{children}
</listingEngineDefinition.HydratedStateProvider>
);
} else {
return (
<listingEngineDefinition.StaticStateProvider
controllers={staticState.controllers}
>
{/* // TODO: Add KIT-3701: Type 'React.ReactNode' is not assignable to type 'import(".../node_modules/@types/react/index").ReactNode'.
Type 'bigint' is not assignable to type 'ReactNode'.*/}
<>{children}</>
{children}
</listingEngineDefinition.StaticStateProvider>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,15 @@ export default function SearchProvider({
engine={hydratedState.engine}
controllers={hydratedState.controllers}
>
{/* // TODO: KIT-3701: Type 'React.ReactNode' is not assignable to type 'import(".../node_modules/@types/react/index").ReactNode'.
Type 'bigint' is not assignable to type 'ReactNode'.*/}
<>{children}</>
{children}
</searchEngineDefinition.HydratedStateProvider>
);
} else {
return (
<searchEngineDefinition.StaticStateProvider
controllers={staticState.controllers}
>
{/* // TODO: KIT-3701: Type 'React.ReactNode' is not assignable to type 'import(".../node_modules/@types/react/index").ReactNode'.
Type 'bigint' is not assignable to type 'ReactNode'.*/}
<>{children}</>
{children}
</searchEngineDefinition.StaticStateProvider>
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/samples/headless-ssr-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"devDependencies": {
"@types/node": "20.14.12",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"eslint": "8.57",
"eslint-config-next": "14.2.5",
"typescript": "5.4.5"
Expand Down
4 changes: 2 additions & 2 deletions packages/samples/headless-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"devDependencies": {
"@types/node": "20.14.12",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"eslint": "8.57.0",
"eslint-config-react-app": "7.0.1",
"typescript": "5.4.5",
Expand Down

0 comments on commit 195b9ac

Please sign in to comment.