From daa2eb20844139769db637ea7622de25e458b61c Mon Sep 17 00:00:00 2001 From: yasaman Date: Fri, 26 Jan 2024 16:45:38 +0330 Subject: [PATCH] ComplaintDetails Modified --- app/Account/Complaints/[id]/page.tsx | 2 +- components/ComplainsDetails.tsx | 139 ++++++++++++++------------- 2 files changed, 75 insertions(+), 66 deletions(-) diff --git a/app/Account/Complaints/[id]/page.tsx b/app/Account/Complaints/[id]/page.tsx index 5de1e38..fc08b0d 100644 --- a/app/Account/Complaints/[id]/page.tsx +++ b/app/Account/Complaints/[id]/page.tsx @@ -4,7 +4,7 @@ import React from "react"; export default function page({ params }: { params: any }) { const id = params.id; return ( -
+
); diff --git a/components/ComplainsDetails.tsx b/components/ComplainsDetails.tsx index c867efd..4bf6417 100644 --- a/components/ComplainsDetails.tsx +++ b/components/ComplainsDetails.tsx @@ -6,11 +6,11 @@ import Image from "next/image"; import { ComplainDetailsItems } from "@/constants"; import { useMutation } from "@tanstack/react-query"; import useData from "@/store/useData"; -import { convertDate , convertFullTime } from "@/lib/utils"; +import { convertDate, convertFullTime } from "@/lib/utils"; import { Badge } from "./ui/badge"; import InspectorOperations from "./InspectorOperations"; import { postComplaintTracking } from "@/utils/citizenApi"; -import { Button } from "@/components/ui/button"; +import { Button } from "@/components/ui/button"; import { AlertDialog, @@ -153,7 +153,7 @@ export default function ComplainsDetails({ رمز عبور - + برای مشاهده درخواست پسورد خود را وارد نمایید. @@ -200,7 +200,7 @@ export default function ComplainsDetails({ {/* Editt */}
{/* 1 */} -
+
{/* ***** */}

@@ -319,74 +319,83 @@ export default function ComplainsDetails({ )}

-
-

روند شکایت

-
- {data.contents?.map((item: any) => { - return ( -
-
-

- - {item.sender == 0 ? "شهروند" : "بازرس"} - -

-

- تاریخ : +

+
+

+ روند شکایت +

+
+ {data.contents?.map((item: any) => { + return ( +
+
+

+ + {item.sender == 0 ? "شهروند" : "بازرس"} + +

+

+ تاریخ : + + {convertDate(item.dateTime)} + +

+
+
- {convertDate(item.dateTime)} + {item.text ? item.text : "-"} -

-
-
- - {item.text ? item.text : "-"} - -
- {/* {item.media.length !== 0 && ( +
+ {/* {item.media.length !== 0 && ( )} */} -
-
- {item?.media.map((item: any, index: number) => { - return ( -
-
- ); - })} + ); + })} +