Skip to content

Commit f9e0dad

Browse files
authored
refactor(grant-data-table): remove unused density prop from DataTable (#1815)
* refactor(grant-data-table): remove unused density prop from DataTable * refactor(request-columns): remove unused imports and comments
1 parent 02dfd71 commit f9e0dad

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 2 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 { AccessGrant } from '@/hooks/use-access-requests';
5-
import { buildGrantColumns, type GrantTableRow } from './grant-columns';
5+
import { buildGrantColumns } from './grant-columns';
66

77
interface GrantDataTableProps {
88
data: AccessGrant[];
@@ -19,7 +19,6 @@ export function GrantDataTable({ data, isLoading, onRevoke }: GrantDataTableProp
1919
columns={columns}
2020
isLoading={isLoading}
2121
emptyMessage="No access grants yet"
22-
density="compact"
2322
/>
2423
);
2524
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type { AccessRequest } from '@/hooks/use-access-requests';
44
import { Badge } from '@comp/ui/badge';
55
import { Button } from '@comp/ui/button';
66
import type { ColumnDef } from '@tanstack/react-table';
7-
import { Copy } from 'lucide-react';
8-
import { toast } from 'sonner';
97

108
export type RequestTableRow = AccessRequest;
119

@@ -97,7 +95,6 @@ export function buildRequestColumns({
9795
const ndaPending = row.original.status === 'approved' && !row.original.grant;
9896

9997
if (ndaPending) {
100-
// @ts-expect-error - warning variant might be custom
10198
return <Badge variant="warning">Pending</Badge>;
10299
}
103100

0 commit comments

Comments
 (0)