A bug fixed
parent
d5d8cff1ca
commit
9a300fbac6
|
|
@ -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 ? (
|
||||
<div className="flex items-center justify-center gap-2">
|
||||
<Oval
|
||||
visible={true}
|
||||
height="20"
|
||||
width="20"
|
||||
color="#fff"
|
||||
ariaLabel="oval-loading"
|
||||
wrapperStyle={{}}
|
||||
wrapperClass=""
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
"ارسال درخواست"
|
||||
)}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue