Skip to content

Commit 97d43df

Browse files
committed
hide mobile view and remove applicant header
1 parent 9fd8831 commit 97d43df

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/codebility/app/home/applicants/_components/_table/applicantDataTable.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function ApplicantDataTableComponent<TData extends NewApplicantType, TValue>({
246246
</Table>
247247

248248
{/* Table for smaller screens */}
249-
<div>
249+
<div className="xl:hidden">
250250
<ApplicantMobileTable table={table} />
251251
</div>
252252

‎apps/codebility/app/home/applicants/_components/_table/applicantMobileTable.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ function ApplicantMobileTable<TData extends NewApplicantType>({
4343
{table.getHeaderGroups().map((headerGroup) => (
4444
<TableRow key={headerGroup.id}>
4545
{headerGroup.headers
46-
.filter((_, index) => index <= 1) // 👈 show 1st and 2nd columns
46+
.filter((_, index) => index === 0) // show ONLY 1st column
4747
.map((header) => (
4848
<TableHead
4949
key={header.id}
5050
className={cn(
51-
"whitespace-nowrap",
51+
"h-10 whitespace-nowrap",
5252
(header.column.columnDef.meta as any)?.className,
5353
)}
5454
>
@@ -86,7 +86,7 @@ function ApplicantMobileTable<TData extends NewApplicantType>({
8686
>
8787
{row
8888
.getVisibleCells()
89-
.filter((_, index) => index <= 1) // 👈 show 1st and 2nd columns
89+
.filter((_, index) => index <= 1) //show 1st and 2nd columns
9090
.map((cell) => (
9191
<TableCell
9292
key={cell.id}

0 commit comments

Comments
 (0)