Skip to content

Commit 02b7e22

Browse files
authored
refactor(request-data-table): remove unused density prop from DataTable (#1816)
1 parent f9e0dad commit 02b7e22

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

apps/app/src/app/(app)/[orgId]/trust/components/request-data-table.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { DataTable } from '@/components/ui/data-table/DataTable';
44
import type { AccessRequest } from '@/hooks/use-access-requests';
5-
import { buildRequestColumns, type RequestTableRow } from './request-columns';
5+
import { buildRequestColumns } from './request-columns';
66

77
interface RequestDataTableProps {
88
data: AccessRequest[];
@@ -13,19 +13,19 @@ interface RequestDataTableProps {
1313
onPreviewNda: (row: AccessRequest) => void;
1414
}
1515

16-
export function RequestDataTable({
17-
data,
18-
isLoading,
19-
onApprove,
20-
onDeny,
21-
onResendNda,
22-
onPreviewNda
16+
export function RequestDataTable({
17+
data,
18+
isLoading,
19+
onApprove,
20+
onDeny,
21+
onResendNda,
22+
onPreviewNda,
2323
}: RequestDataTableProps) {
24-
const columns = buildRequestColumns({
25-
onApprove,
26-
onDeny,
27-
onResendNda,
28-
onPreviewNda
24+
const columns = buildRequestColumns({
25+
onApprove,
26+
onDeny,
27+
onResendNda,
28+
onPreviewNda,
2929
});
3030

3131
return (
@@ -34,7 +34,6 @@ export function RequestDataTable({
3434
columns={columns}
3535
isLoading={isLoading}
3636
emptyMessage="No access requests yet"
37-
density="compact"
3837
/>
3938
);
4039
}

0 commit comments

Comments
 (0)