A bug fixed

Kahdooei
Hossein Rahmani 2024-01-27 14:05:46 +03:30
parent d5d8cff1ca
commit 9a300fbac6
1 changed files with 17 additions and 2 deletions

View File

@ -41,7 +41,7 @@ import {
} from "@/utils/citizenApi"; } from "@/utils/citizenApi";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { getCaptcha, getCategory, getOrganizations } from "@/utils/commonApi"; 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 useToken from "@/store/useToken";
import { toast } from "sonner"; import { toast } from "sonner";
import { RefreshCcw } from "lucide-react"; import { RefreshCcw } from "lucide-react";
@ -484,7 +484,22 @@ export default function RequestStep2() {
type="submit" 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" 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> </Button>
</div> </div>
</form> </form>