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 ? ( +
+ +
+ ) : ( + "ارسال درخواست" + )}