From ea40b10af98d434deb000e68d8c4e02edb6cbbf8 Mon Sep 17 00:00:00 2001 From: Hugo Lextrait Date: Fri, 12 May 2023 10:51:12 +0200 Subject: [PATCH] :art: fix img --- .../Components/DesignSystem/FilePreview/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/front/Components/DesignSystem/FilePreview/index.tsx b/src/front/Components/DesignSystem/FilePreview/index.tsx index 6ea12f73..d7e6f794 100644 --- a/src/front/Components/DesignSystem/FilePreview/index.tsx +++ b/src/front/Components/DesignSystem/FilePreview/index.tsx @@ -3,7 +3,6 @@ import React from "react"; import Typography, { ITypo, ITypoColor } from "../Typography"; import classes from "./classes.module.scss"; import Loader from "../Loader"; -import Image from "next/image"; type IProps = { href: string; @@ -27,11 +26,11 @@ export default class FilePreview extends React.Component { )}
- {type?.toLowerCase() === "pdf" && ( - - )} - {type?.toLowerCase() !== "pdf" && File preview} -
+ {type?.toLowerCase() === "pdf" && ( + + )} + {type?.toLowerCase() !== "pdf" && File preview} + ); }