From 339fb770fa5faf286fe5483c873a111b209abc31 Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Wed, 24 Sep 2025 11:56:46 +0330 Subject: [PATCH] refactor(companies-table): Simplify table and correct cell component The 'City' and 'Postal Code' columns have been removed from the companies table to simplify the UI and reduce visual clutter. This change is reflected in both the table's JSX structure and the `useCompanyListPresenter` hook that defines the table headers. Additionally, the `TableHead` component was incorrectly used for data cells within the table body. This has been fixed by replacing it with the semantically correct `TableCell` component. --- src/components/Tables/companies/index.tsx | 42 ++++++++----------- .../companies/useCompanyListPresenter.ts | 3 +- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git a/src/components/Tables/companies/index.tsx b/src/components/Tables/companies/index.tsx index 2645a7c..f42c1ce 100644 --- a/src/components/Tables/companies/index.tsx +++ b/src/components/Tables/companies/index.tsx @@ -58,39 +58,33 @@ const CompaniesTable = ({}: IProps) => { key={company.id} className="odd:bg-gray-2 dark:odd:bg-gray-7" > - + {index + 1} - - + + {company.name} - - + + {company.email} - - + + {formatPhoneNumber(company.phone)} - - + + {company.address.country} - - + + {company.address.state} - - - {company.address.city} - - - {company.address.postal_code} - - + + {company.language} - - + + {company.currency} - - + + {company.employee_count} - +