From d3749275d01a3df0e8a035cbe553b50905d19c92 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Wed, 3 Jul 2024 01:59:34 -0700 Subject: [PATCH] React.ReactNode -> React.JSX.Element --- web/src/components/GameSessionProvider.tsx | 2 +- web/src/components/SettingsProvider.tsx | 2 +- web/src/components/utilities/Label.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/GameSessionProvider.tsx b/web/src/components/GameSessionProvider.tsx index b7fa099a..557a8381 100644 --- a/web/src/components/GameSessionProvider.tsx +++ b/web/src/components/GameSessionProvider.tsx @@ -9,7 +9,7 @@ import type { StoredData } from '../lib/storedData/StoredData' export const GameSessionContext = createContext(undefined!) export type GameSessionProviderProps = { - children: React.ReactNode + children: React.JSX.Element storedData: StoredData } diff --git a/web/src/components/SettingsProvider.tsx b/web/src/components/SettingsProvider.tsx index d0dac9eb..012c708c 100644 --- a/web/src/components/SettingsProvider.tsx +++ b/web/src/components/SettingsProvider.tsx @@ -5,7 +5,7 @@ import type { StoredData } from '../lib/storedData/StoredData' export const SettingsContext = createContext(undefined!) export type SettingsProviderProps = { - children: React.ReactNode + children: React.JSX.Element storedData: StoredData } diff --git a/web/src/components/utilities/Label.tsx b/web/src/components/utilities/Label.tsx index 5bdccb1a..54c0bb81 100644 --- a/web/src/components/utilities/Label.tsx +++ b/web/src/components/utilities/Label.tsx @@ -4,7 +4,7 @@ import type { Variant } from '@mui/material/styles/createTypography' export type LabelProps = { sx?: SxProps typographyVariant?: Variant | undefined - children?: React.ReactNode + children?: React.JSX.Element } export function Label(props: LabelProps): React.JSX.Element { const sx = props.sx ?? {}