diff --git a/components/ComplainsDetails.tsx b/components/ComplainsDetails.tsx index 0b85a67..3c15e9a 100644 --- a/components/ComplainsDetails.tsx +++ b/components/ComplainsDetails.tsx @@ -118,7 +118,10 @@ export default function ComplainsDetails({
{data.contents?.map((item: any) => { return ( -
+

{item.sender == 0 ? "شهروند" : "بازرس"} @@ -139,86 +142,6 @@ export default function ComplainsDetails({

); })} - {/* {data.contents?.map((item: any) => { - return ( -
-
-

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

-

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

-
-
- متن: {item.text ? item.text : "-"} -
-
- ); - })} - {data.contents?.map((item: any) => { - return ( -
-
-

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

-

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

-
-
- متن: {item.text ? item.text : "-"} -
-
- ); - })} - {data.contents?.map((item: any) => { - return ( -
-
-

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

-

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

-
-
- متن: {item.text ? item.text : "-"} -
-
- ); - })} - {data.contents?.map((item: any) => { - return ( -
-
-

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

-

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

-
-
- متن: {item.text ? item.text : "-"} -
-
- ); - })}
diff --git a/components/FollowResult.tsx b/components/FollowResult.tsx index f5b555e..d730fb4 100644 --- a/components/FollowResult.tsx +++ b/components/FollowResult.tsx @@ -30,9 +30,8 @@ export default function FollowResult() { const router = useRouter(); const [trackingNumber, setTrackingNumber] = useState(); const [password, setPassword] = useState(); - const [complaintData, setComplaintData] = useState(); - const [printStyle, setPrintStyle] = useState(true); - + const [complaintData, setComplaintData] = useState(); + const [printStyle, setPrintStyle] = useState(true); // Print component Data const componentRef = useRef(null); @@ -127,40 +126,7 @@ export default function FollowResult() { - - {complaintPrintMutation.isPending ? ( -
- -
- ) : ( -
-

- {" "} - موضوع شکایت:{" "} - - {`${complaintData?.title}`} - -

-

- {" "} - متن شکایت:{" "} - - {`${complaintData?.contents[0]?.text}`} - -

-
- + {complaintPrintMutation.isPending ? (

{" "} @@ -216,7 +183,6 @@ export default function FollowResult() { - {/* Cancel */}