Skip to content

Commit

Permalink
build(react-uploader): fixed types and props for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Didenko committed Jun 11, 2024
1 parent 117ac90 commit 3bfd941
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 3bfd941

Please sign in to comment.