From 9a300fbac61d61aa15d136281fc3b9b6875b3e23 Mon Sep 17 00:00:00 2001 From: Hossein Rahmani Date: Sat, 27 Jan 2024 14:05:46 +0330 Subject: [PATCH] A bug fixed --- components/RequestStep2.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/components/RequestStep2.tsx b/components/RequestStep2.tsx index 83cf0ad..9577b62 100644 --- a/components/RequestStep2.tsx +++ b/components/RequestStep2.tsx @@ -41,7 +41,7 @@ import { } from "@/utils/citizenApi"; import { useRouter } from "next/navigation"; import { getCaptcha, getCategory, getOrganizations } from "@/utils/commonApi"; -import { ThreeDots } from "react-loader-spinner"; +import { Oval, ThreeDots } from "react-loader-spinner"; import useToken from "@/store/useToken"; import { toast } from "sonner"; import { RefreshCcw } from "lucide-react"; @@ -484,7 +484,22 @@ export default function RequestStep2() { type="submit" className="w-1/2 p-2 mb-4 text-center text-white sm:w-1/3 lg:w-1/4 bg-blue rounded-xl" > - ارسال درخواست + {authorizedComplaintSubmitMutation.isPending || + complaintSubmitMutation.isPending ? ( +
+ +
+ ) : ( + "ارسال درخواست" + )}