diff --git a/src/If.tsx b/src/If.tsx index 437ae926..a579379c 100644 --- a/src/If.tsx +++ b/src/If.tsx @@ -1,4 +1,4 @@ -import React, { Fragment, type FC, type ReactElement } from 'react'; +import React, { Fragment, FC, ReactElement } from 'react'; import { Else } from './Else'; import { Fallback } from './Fallback'; import { getConditionResult } from './getConditionResults'; diff --git a/src/IfAsync.tsx b/src/IfAsync.tsx index 16d3b38b..b653805e 100644 --- a/src/IfAsync.tsx +++ b/src/IfAsync.tsx @@ -1,4 +1,4 @@ -import React, { Fragment, useEffect, useMemo, useRef, useState, type PropsWithChildren, type ReactElement } from 'react'; +import React, { Fragment, useEffect, useMemo, useRef, useState, PropsWithChildren, ReactElement } from 'react'; import { Else } from './Else'; import { Fallback } from './Fallback'; import { useSingleton } from './hooks'; diff --git a/src/Switch.tsx b/src/Switch.tsx index 7c4035fd..4311eac2 100644 --- a/src/Switch.tsx +++ b/src/Switch.tsx @@ -1,4 +1,4 @@ -import React, { type ReactElement } from 'react'; +import React, { ReactElement } from 'react'; import { Case } from './Case'; import { Default } from './Default'; import { getConditionResult } from './getConditionResults'; @@ -11,7 +11,7 @@ import type { FCWithImplicitChildren } from './types'; * This component can contain any number of `` and one `` blocks * @param __namedParameters Children to pass into the `` component */ -export const Switch: FCWithImplicitChildren<'without-function-children'> = ({ children }) => { +export const Switch: FCWithImplicitChildren = ({ children }) => { // -- Inspired by react-router -- // We use React.Children.forEach instead of React.Children.toArray().find()