Skip to content

Commit

Permalink
React.ReactNode -> React.JSX.Element
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 3, 2024
1 parent 8c1a3d4 commit d374927
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/components/GameSessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { StoredData } from '../lib/storedData/StoredData'
export const GameSessionContext = createContext<GameSession>(undefined!)

export type GameSessionProviderProps = {
children: React.ReactNode
children: React.JSX.Element
storedData: StoredData
}

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/SettingsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { StoredData } from '../lib/storedData/StoredData'
export const SettingsContext = createContext<Settings>(undefined!)

export type SettingsProviderProps = {
children: React.ReactNode
children: React.JSX.Element
storedData: StoredData
}

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/utilities/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Variant } from '@mui/material/styles/createTypography'
export type LabelProps = {
sx?: SxProps<Theme>
typographyVariant?: Variant | undefined
children?: React.ReactNode
children?: React.JSX.Element
}
export function Label(props: LabelProps): React.JSX.Element {
const sx = props.sx ?? {}
Expand Down

0 comments on commit d374927

Please sign in to comment.