Skip to content

Commit 9d5a179

Browse files
committed
chore: use css utilities
1 parent e62faf6 commit 9d5a179

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

components/DataTable.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ export const DataTable = <T,>({
2727
<TableHead
2828
key={columnIndex}
2929
className={cn(
30-
'bg-dark-400 text-purple-100 py-4',
30+
'bg-dark-400 text-purple-100 py-4 first:pl-5 last:pr-5',
3131
headerCellClassName,
32-
column.headClassName,
33-
columnIndex === 0 && 'pl-5',
34-
columnIndex === columns.length - 1 && 'pr-5'
32+
column.headClassName
3533
)}
3634
>
3735
{column.header}
@@ -52,11 +50,9 @@ export const DataTable = <T,>({
5250
<TableCell
5351
key={columnIndex}
5452
className={cn(
55-
'py-4',
53+
'py-4 first:pl-5 last:pr-5',
5654
bodyCellClassName,
57-
column.cellClassName,
58-
columnIndex === 0 && 'pl-5',
59-
columnIndex === columns.length - 1 && 'pr-5'
55+
column.cellClassName
6056
)}
6157
>
6258
{column.cell(row, rowIndex)}

0 commit comments

Comments
 (0)