diff --git a/components/Pagination.tsx b/components/Pagination.tsx
index 0ff6064..697c0e5 100644
--- a/components/Pagination.tsx
+++ b/components/Pagination.tsx
@@ -46,6 +46,7 @@ export default function Pagination({
activeLinkClassName=" text-white w-full p-1 h-full"
previousLinkClassName=" w-10 h-10 grid place-content-center rounded-lg text-sm shadow-md"
nextLinkClassName=" w-10 h-10 grid place-content-center rounded-lg text-sm shadow-md"
+ pageLinkClassName="p-4"
/>
>
);
diff --git a/components/Search.tsx b/components/Search.tsx
index b1a6c94..086da7c 100644
--- a/components/Search.tsx
+++ b/components/Search.tsx
@@ -47,7 +47,7 @@ export default function Search({
ref={inputRef}
id="default-search"
className={`mb-0 h-8 bg-[#E9E9E9] border-none focus-visible:none rounded-lg
- block w-full min-w-[13rem] text-xs md:text-sm text-black
+ block w-full text-xs md:text-sm text-black
text-opacity-60 dark:text-white
${mode === "controller" && "h-14 "}
${
diff --git a/components/TableController.tsx b/components/TableController.tsx
index ed84303..0aa8874 100644
--- a/components/TableController.tsx
+++ b/components/TableController.tsx
@@ -54,73 +54,68 @@ interface Complaint {
export default function TableController({
data,
pageSize,
- currentPage
+ currentPage,
}: {
data: Complaint[];
pageSize: number;
currentPage: number;
}) {
const router = useRouter();
-
+
return (
-
-
- {/* A list of your recent invoices. */}
-
-
- ردیف
- کد پیگیری
- تاریخ ثبت
- تاریخ آخرین تغییر
- موضوع
- دستگاه مربوطه
-
-
-
- {data?.map((item: Complaint, index: number) => {
- return (
- {
- localStorage.setItem("CompliantData", JSON.stringify(item));
- router.push(
- `/UserPanel/ControllerDashboard/Complaints/${item.id}`
- );
- }}
- className="cursor-pointer hover:bg-gray-200"
- key={item.id}
- >
-
- {pageSize * (currentPage - 1) + (index + 1)}
-
- {item.trackingNumber}
-
- {convertFullTime(item.registeredAt)}
-
-
- {convertFullTime(item.lastChanged)}
-
-
- {item?.title ? item.title : "-"}
-
-
- {item?.complaintOrganization
- ? item?.complaintOrganization.title
- : "-"}
-
-
- );
- })}
- {/* {data.length != 0 &&
- [...Array(5 - data.length)].map(() => {
+
+
+
+ {/* A list of your recent invoices. */}
+
+
+ ردیف
+ کد پیگیری
+ تاریخ ثبت
+ تاریخ آخرین تغییر
+ موضوع
+ دستگاه مربوطه
+
+
+
+ {data?.map((item: Complaint, index: number) => {
return (
+ onClick={() => {
+ localStorage.setItem("CompliantData", JSON.stringify(item));
+ router.push(
+ `/UserPanel/ControllerDashboard/Complaints/${item.id}`
+ );
+ }}
+ className="cursor-pointer hover:bg-gray-200 "
+ key={item.id}
+ >
+
+ {pageSize * (currentPage - 1) + (index + 1)}
+
+
+ {item.trackingNumber}
+
+
+ {convertFullTime(item.registeredAt)}
+
+
+ {convertFullTime(item.lastChanged)}
+
+
+ {item?.title ? item.title : "-"}
+
+
+ {item?.complaintOrganization
+ ? item?.complaintOrganization.title
+ : "-"}
+
+
);
- })} */}
-
-
+ })}
+
+
+
);
}