Compare commits

..

No commits in common. "6a86af4d88564ed53f573d1f9dd00626758f3367" and "95649452be99f70ebcb91f5feacc3860213ade7f" have entirely different histories.

3 changed files with 58 additions and 54 deletions

View File

@ -46,7 +46,6 @@ 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"
/>
</>
);

View File

@ -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 text-xs md:text-sm text-black
block w-full min-w-[13rem] text-xs md:text-sm text-black
text-opacity-60 dark:text-white
${mode === "controller" && "h-14 "}
${

View File

@ -54,7 +54,7 @@ interface Complaint {
export default function TableController({
data,
pageSize,
currentPage,
currentPage
}: {
data: Complaint[];
pageSize: number;
@ -63,9 +63,8 @@ export default function TableController({
const router = useRouter();
return (
<div className=" overflow-hidden">
<div className="max-h-[50vh] lg:max-h-[65vh] overflow-auto scrollbar-thin scrollbar-thumb-gray-500 scrollbar-track-gray-100">
<Table className="border-[1px] border-solid border-muted rounded-md w-full min-w-[40rem] mb-8 md:mb-4 2xl:mb-0 ">
<div>
<Table className="border-[1px] border-solid border-muted rounded-md w-full min-w-[40rem] overflow-y-auto scrollbar-thumb-gray-600 scrollbar-track-gray-100 scrollbar-thin mb-20">
{/* <TableCaption>A list of your recent invoices.</TableCaption> */}
<TableHeader>
<TableRow>
@ -87,15 +86,13 @@ export default function TableController({
`/UserPanel/ControllerDashboard/Complaints/${item.id}`
);
}}
className="cursor-pointer hover:bg-gray-200 "
className="cursor-pointer hover:bg-gray-200"
key={item.id}
>
<TableCell className="w-1/12 font-medium ">
{pageSize * (currentPage - 1) + (index + 1)}
</TableCell>
<TableCell className="w-1/12">
{item.trackingNumber}
</TableCell>
<TableCell className="w-1/12">{item.trackingNumber}</TableCell>
<TableCell className="w-2/12">
{convertDate(item.registeredAt)}
</TableCell>
@ -113,9 +110,17 @@ export default function TableController({
</TableRow>
);
})}
{/* {data.length != 0 &&
[...Array(5 - data.length)].map(() => {
return (
<TableRow
key={Math.random()}
className="border border-t-0 border-b-0"
/>
);
})} */}
</TableBody>
</Table>
</div>
</div>
);
}