From b810ea11515b8fb3497f464a3bb9059b519889f7 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sat, 27 May 2023 05:29:50 +0200 Subject: [PATCH] Fix PersonContext typing --- src/app/hooks/PersonContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} ) }