Bugs fixed
parent
ccabfbe739
commit
8e00f200a7
|
|
@ -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}</>, {
|
||||
|
|
@ -95,7 +80,7 @@ export default function FollowUp() {
|
|||
// });
|
||||
|
||||
console.log(data);
|
||||
|
||||
|
||||
localStorage.setItem("trackingNumber2", data.trackingNumber);
|
||||
localStorage.setItem("password2", data.password);
|
||||
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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={{}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue