From e41719bf5d95393409d5a4b7de27c1a1536523c6 Mon Sep 17 00:00:00 2001 From: Thinley Date: Fri, 1 Nov 2024 18:07:27 +0530 Subject: [PATCH] FEAT: Add spiner --- web/src/app/components/DragDrop.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/components/DragDrop.tsx b/web/src/app/components/DragDrop.tsx index 448cb26..2076d82 100644 --- a/web/src/app/components/DragDrop.tsx +++ b/web/src/app/components/DragDrop.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import { upload } from "../../../actions/user"; import { useRouter } from "next/navigation"; -import { CloudUpload } from "lucide-react"; +import { CloudUpload, Loader2 } from "lucide-react"; import { useToast } from "@/hooks/use-toast"; import { LoadingUI } from "./LoadingUI"; @@ -127,8 +127,9 @@ export const DragDrop = () => { ) : (
{loading ? ( -
+
+
) : (