Bugs fixed

Kahdooei
Hossein Rahmani 2024-01-27 13:21:14 +03:30
parent ccabfbe739
commit 8e00f200a7
2 changed files with 19 additions and 20 deletions

View File

@ -25,6 +25,7 @@ import Link from "next/link";
import FollowResult from "./FollowResult";
import { postComplaintTracking } from "@/utils/citizenApi";
import { toast } from "sonner";
import { Oval } from "react-loader-spinner";
const FormSchema = z.object({
trackingNumber: z.string().min(2, {
@ -52,22 +53,6 @@ export default function FollowUp() {
// router.push("/FollowResult");
router.push("/FollowResult", { data: JSON.stringify(result) });
// router.push(
// "/FollowResult",
// {
// data: JSON.stringify(result),
// },
// );
// router.push({
// pathname : '/FollowResult',
// query : {
// data: JSON.stringify( result ) ;
// },
// });
// return (res)
},
onError: (err: any | string) => {
toast(<>{err.response.data.detail}</>, {
@ -162,7 +147,21 @@ export default function FollowUp() {
type="submit"
className="w-1/2 p-2 text-center text-white bg-blue min-w-max sm:w-1/3 lg:w-1/4 rounded-xl"
>
پیگیری درخواست
{complaintTrackingMutation.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>

View File

@ -81,8 +81,8 @@ export default function Verify() {
<div className="absolute top-3 left-5 ">
<Triangle
visible={true}
height="30"
width="30"
height="40"
width="40"
color="#003778"
ariaLabel="triangle-loading"
wrapperStyle={{}}