Skip to content

Commit

Permalink
FEAT: Add spiner
Browse files Browse the repository at this point in the history
  • Loading branch information
thinley4 committed Nov 1, 2024
1 parent c123c8c commit e41719b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/app/components/DragDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -127,8 +127,9 @@ export const DragDrop = () => {
) : (
<div>
{loading ? (
<div className="flex h-96 items-center justify-center">
<div className="flex flex-col gap-5 h-96 items-center justify-center">
<LoadingUI />
<Loader2 className="h-4 w-4 animate-spin" />
</div>
) : (
<div className="border border-gray-700 bg-[#0E0A24] rounded-lg shadow-xl p-8 flex flex-col items-center space-y-6 max-w-md mx-auto">
Expand Down

0 comments on commit e41719b

Please sign in to comment.