Merge pull request #19707 from RobotSail/react-18-props-with-children-upgrade

react 18 props with children upgrade
This commit is contained in:
Fredrik Adelöw
2023-09-12 12:01:55 +02:00
committed by GitHub
25 changed files with 77 additions and 61 deletions
@@ -30,7 +30,7 @@ describe('VersionedContext', () => {
const Context = createVersionedContext<ContextType>('test-context-1');
const rendered = renderHook(() => useContext(Context), {
wrapper: ({ children }) => (
wrapper: ({ children }: React.PropsWithChildren<{}>) => (
<Context.Provider
value={createVersionedValueMap({ 1: '1v1', 2: '1v2' })}
>
@@ -47,7 +47,7 @@ describe('VersionedContext', () => {
const Context = createVersionedContext<ContextType>('test-context-2');
const rendered = renderHook(() => useVersionedContext('test-context-2'), {
wrapper: ({ children }) => (
wrapper: ({ children }: React.PropsWithChildren<{}>) => (
<Context.Provider
value={createVersionedValueMap({ 1: '2v1', 2: '2v2' })}
>