diff --git a/rsconcept/frontend/src/components/wrap/AnimateFade.tsx b/rsconcept/frontend/src/components/wrap/AnimateFade.tsx index 76d428e9..bae27dd3 100644 --- a/rsconcept/frontend/src/components/wrap/AnimateFade.tsx +++ b/rsconcept/frontend/src/components/wrap/AnimateFade.tsx @@ -7,22 +7,10 @@ import { CProps } from '../props'; interface AnimateFadeProps extends CProps.AnimatedDiv { noFadeIn?: boolean; noFadeOut?: boolean; - removeContent?: boolean; hideContent?: boolean; } -function AnimateFade({ - style, - noFadeIn, - noFadeOut, - children, - removeContent, - hideContent, - ...restProps -}: AnimateFadeProps) { - if (removeContent) { - return null; - } +function AnimateFade({ style, noFadeIn, noFadeOut, children, hideContent, ...restProps }: AnimateFadeProps) { return ( - - {children} - - - Данные не загружены - + {!isLoading && !error && !hasNoData ? ( + + {children} + + ) : null} + {!isLoading && !error && hasNoData ? ( + + Данные не загружены + + ) : null} {isLoading ? : null} {error ? : null}