-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(react-uploader): fixed types and props for build
- Loading branch information
Egor Didenko
committed
Jun 11, 2024
1 parent
117ac90
commit 3bfd941
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
12 changes: 4 additions & 8 deletions
12
packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import React, { FC, Suspense } from "react"; | ||
import React, { FC } from "react"; | ||
|
||
export type TProps = { | ||
// fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null; | ||
// condition: boolean; | ||
fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null; | ||
condition?: boolean; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const ConditionalSuspense: FC<TProps> = ({ | ||
// condition, | ||
// fallback, | ||
children, | ||
}) => { | ||
export const ConditionalSuspense: FC<TProps> = ({ children }) => { | ||
return children; | ||
}; |