diff --git a/src/app/hooks/PersonContext.tsx b/src/app/hooks/PersonContext.tsx index 2e47c7f..b40342e 100644 --- a/src/app/hooks/PersonContext.tsx +++ b/src/app/hooks/PersonContext.tsx @@ -1,15 +1,15 @@ 'use client' -import React, { useContext } from 'react'; +import React, { ReactNode, useContext } from 'react'; import { createContext } from 'react'; import { personalData } from '../../PersonalData'; import { PersonalData } from '../../PersonalDataTypes'; export const PersonContext = createContext(personalData); -export function PersonProvider({ children }) { +export function PersonProvider(props: { children: ReactNode }) { return ( - {children} + {props.children} ) }