From a1f7d60e198c47b739276fe28723d2829959dd5d Mon Sep 17 00:00:00 2001 From: CrispyBaguette Date: Thu, 5 May 2022 16:54:44 +0200 Subject: [PATCH] Added spinner over preview image --- client/src/ImagePreview.tsx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/client/src/ImagePreview.tsx b/client/src/ImagePreview.tsx index 4f045b6..24c5965 100644 --- a/client/src/ImagePreview.tsx +++ b/client/src/ImagePreview.tsx @@ -1,3 +1,5 @@ +import { faSpinner } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useEffect } from "react"; interface ImagePreviewProps { @@ -14,12 +16,20 @@ function ImagePreview({ imageData }: ImagePreviewProps) { }, [imageUrl]); return ( -
- preview +
+
+ preview +
+ +
+
); } -- 2.45.2