Skip to content

Commit

Permalink
Merge pull request #35 from uploadcare/build/suspense-off-ready-apiref
Browse files Browse the repository at this point in the history
build(react-uploader): fixed types and props for build
  • Loading branch information
egordidenko authored Jun 11, 2024
2 parents 117ac90 + 3bfd941 commit 478a7d8
Showing 1 changed file with 4 additions and 8 deletions.
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;
};

0 comments on commit 478a7d8

Please sign in to comment.