Build errors fixed
parent
e12d88c0de
commit
4f0c4ec374
|
|
@ -163,7 +163,7 @@ export default function ComplainsDetails({
|
|||
dir="rtl"
|
||||
id="picture"
|
||||
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>
|
||||
<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" && (
|
||||
<button
|
||||
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>
|
||||
<ArrowRight />
|
||||
|
|
@ -321,7 +321,7 @@ export default function ComplainsDetails({
|
|||
|
||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col">
|
||||
<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) => {
|
||||
return (
|
||||
<div
|
||||
|
|
@ -350,7 +350,7 @@ export default function ComplainsDetails({
|
|||
<Separator className="mt-2 mb-1 " />
|
||||
)} */}
|
||||
<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) => {
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import { useReactToPrint } from "react-to-print";
|
|||
|
||||
import "../app/print-styles.css";
|
||||
import ComplainsDetails from "./ComplainsDetails";
|
||||
import { toast } from "sonner";
|
||||
|
||||
export default function FollowResult() {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { toast } from "@/components/ui/use-toast";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import FollowResult from "./FollowResult";
|
||||
import { postComplaintTracking } from "@/utils/citizenApi";
|
||||
import { toast } from "sonner";
|
||||
|
||||
const FormSchema = z.object({
|
||||
trackingNumber: z.string().min(2, {
|
||||
|
|
|
|||
|
|
@ -60,10 +60,11 @@ export default function Login() {
|
|||
const loginMutation = useMutation({
|
||||
mutationFn: loginStaff,
|
||||
onSuccess: (res) => {},
|
||||
onError: (err: any | string) => {
|
||||
toast(<>{err.response.data.detail}</>, {
|
||||
className: "!bg-red-500 !text-white",
|
||||
});
|
||||
onError: (err: any) => {
|
||||
if (err.response.status == 428) {
|
||||
console.log(useData);
|
||||
router.push("/Verify");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { toast } from "@/components/ui/use-toast";
|
||||
import Link from "next/link";
|
||||
import RequestStep2 from "./RequestStep2";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { toast } from "sonner";
|
||||
|
||||
const FormSchema = z.object({
|
||||
firstName: z.string().min(1, {
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { toast } from "@/components/ui/use-toast";
|
||||
import Link from "next/link";
|
||||
import RequestStep2 from "./RequestStep2";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { editProfile, getProfile } from "@/utils/authenticateApi";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { toast } from "sonner";
|
||||
|
||||
const FormSchema = z.object({
|
||||
firstName: z.string().min(1, {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "sootzani",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "sootzani",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"dependencies": {
|
||||
"@hookform/resolvers": "^3.3.2",
|
||||
"@radix-ui/react-alert-dialog": "^1.0.5",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sootzani",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
|
|
|||
Loading…
Reference in New Issue