Build errors fixed
parent
e12d88c0de
commit
4f0c4ec374
|
|
@ -153,7 +153,7 @@ export default function ComplainsDetails({
|
||||||
<AlertDialogContent dir="rtl" className="">
|
<AlertDialogContent dir="rtl" className="">
|
||||||
<AlertDialogHeader dir="rtl">
|
<AlertDialogHeader dir="rtl">
|
||||||
<AlertDialogTitle dir="rtl">رمز عبور</AlertDialogTitle>
|
<AlertDialogTitle dir="rtl">رمز عبور</AlertDialogTitle>
|
||||||
<AlertDialogDescription>
|
<AlertDialogDescription>
|
||||||
برای مشاهده درخواست پسورد خود را وارد نمایید.
|
برای مشاهده درخواست پسورد خود را وارد نمایید.
|
||||||
</AlertDialogDescription>
|
</AlertDialogDescription>
|
||||||
</AlertDialogHeader>
|
</AlertDialogHeader>
|
||||||
|
|
@ -163,7 +163,7 @@ export default function ComplainsDetails({
|
||||||
dir="rtl"
|
dir="rtl"
|
||||||
id="picture"
|
id="picture"
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
className="bg-white hover:bg-white focus:bg-white"
|
className="bg-white hover:bg-white focus:bg-white"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<AlertDialogFooter className=" gap-y-2 max-md:w-full max-md:flex max-md:flex-col">
|
<AlertDialogFooter className=" gap-y-2 max-md:w-full max-md:flex max-md:flex-col">
|
||||||
|
|
@ -188,7 +188,7 @@ export default function ComplainsDetails({
|
||||||
{state !== "FollowResult" && (
|
{state !== "FollowResult" && (
|
||||||
<button
|
<button
|
||||||
onClick={() => router.push("/Account/Complaints")}
|
onClick={() => router.push("/Account/Complaints")}
|
||||||
className="flex gap-1 my-2 cursor-pointer text-blue"
|
className="flex gap-1 my-2 cursor-pointer text-blue"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
|
|
@ -321,7 +321,7 @@ export default function ComplainsDetails({
|
||||||
|
|
||||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col">
|
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col">
|
||||||
<p className="text-[#464646] text-base font-bold">روند شکایت</p>
|
<p className="text-[#464646] text-base font-bold">روند شکایت</p>
|
||||||
<div className="flex flex-col mt-4 gap-y-4">
|
<div className="flex flex-col mt-4 gap-y-4">
|
||||||
{data.contents?.map((item: any) => {
|
{data.contents?.map((item: any) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
@ -350,7 +350,7 @@ export default function ComplainsDetails({
|
||||||
<Separator className="mt-2 mb-1 " />
|
<Separator className="mt-2 mb-1 " />
|
||||||
)} */}
|
)} */}
|
||||||
<div className=" text-[#464646] mt-2">
|
<div className=" text-[#464646] mt-2">
|
||||||
<div className="flex flex-wrap items-center w-full gap-2 mt-2 text-xs max-md:flex-col">
|
<div className="flex flex-wrap items-center w-full gap-2 mt-2 text-xs max-md:flex-col">
|
||||||
{item?.media.map((item: any, index: number) => {
|
{item?.media.map((item: any, index: number) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ import { useReactToPrint } from "react-to-print";
|
||||||
|
|
||||||
import "../app/print-styles.css";
|
import "../app/print-styles.css";
|
||||||
import ComplainsDetails from "./ComplainsDetails";
|
import ComplainsDetails from "./ComplainsDetails";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
export default function FollowResult() {
|
export default function FollowResult() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
|
||||||
|
|
@ -18,13 +18,13 @@ import {
|
||||||
FormMessage,
|
FormMessage,
|
||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { toast } from "@/components/ui/use-toast";
|
|
||||||
import { Textarea } from "@/components/ui/textarea";
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import FollowResult from "./FollowResult";
|
import FollowResult from "./FollowResult";
|
||||||
import { postComplaintTracking } from "@/utils/citizenApi";
|
import { postComplaintTracking } from "@/utils/citizenApi";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
const FormSchema = z.object({
|
const FormSchema = z.object({
|
||||||
trackingNumber: z.string().min(2, {
|
trackingNumber: z.string().min(2, {
|
||||||
|
|
|
||||||
|
|
@ -60,10 +60,11 @@ export default function Login() {
|
||||||
const loginMutation = useMutation({
|
const loginMutation = useMutation({
|
||||||
mutationFn: loginStaff,
|
mutationFn: loginStaff,
|
||||||
onSuccess: (res) => {},
|
onSuccess: (res) => {},
|
||||||
onError: (err: any | string) => {
|
onError: (err: any) => {
|
||||||
toast(<>{err.response.data.detail}</>, {
|
if (err.response.status == 428) {
|
||||||
className: "!bg-red-500 !text-white",
|
console.log(useData);
|
||||||
});
|
router.push("/Verify");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,12 @@ import {
|
||||||
FormMessage,
|
FormMessage,
|
||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { toast } from "@/components/ui/use-toast";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import RequestStep2 from "./RequestStep2";
|
import RequestStep2 from "./RequestStep2";
|
||||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||||
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
const FormSchema = z.object({
|
const FormSchema = z.object({
|
||||||
firstName: z.string().min(1, {
|
firstName: z.string().min(1, {
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,12 @@ import {
|
||||||
FormMessage,
|
FormMessage,
|
||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { toast } from "@/components/ui/use-toast";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import RequestStep2 from "./RequestStep2";
|
import RequestStep2 from "./RequestStep2";
|
||||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||||
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
const FormSchema = z.object({
|
const FormSchema = z.object({
|
||||||
firstName: z.string().min(1, {
|
firstName: z.string().min(1, {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "sootzani",
|
"name": "sootzani",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "sootzani",
|
"name": "sootzani",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^3.3.2",
|
"@hookform/resolvers": "^3.3.2",
|
||||||
"@radix-ui/react-alert-dialog": "^1.0.5",
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sootzani",
|
"name": "sootzani",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue