From f9511af1a040d61c70a5ee60068694a14ab4edb1 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Mon, 2 Oct 2023 16:08:46 +0200 Subject: [PATCH] :bug: Fix loader behind files --- src/front/Components/DesignSystem/FilePreview/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/front/Components/DesignSystem/FilePreview/index.tsx b/src/front/Components/DesignSystem/FilePreview/index.tsx index 9e99150c..81046eff 100644 --- a/src/front/Components/DesignSystem/FilePreview/index.tsx +++ b/src/front/Components/DesignSystem/FilePreview/index.tsx @@ -17,9 +17,11 @@ export default class FilePreview extends React.Component { if (this.props.fileName) type = this.props.fileName.split(".").pop(); return (
-
- -
+ {!this.props.href && ( +
+ +
+ )} {this.props.href && ( <>