Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(ui): use TableCell for skeleton rows in Secret Sharing tables

vedgharat4bdf430cb732
diff --git a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RequestedSecretsTable.tsx b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RequestedSecretsTable.tsx
index c8ce8ed0f2..4b47f41195 100644
--- a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RequestedSecretsTable.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RequestedSecretsTable.tsx
@@ -9,6 +9,7 @@ import {
Skeleton,
Table,
TableBody,
+ TableCell,
TableHead,
TableHeader,
TableRow
@@ -56,9 +57,9 @@ export const RequestedSecretsTable = ({ handlePopUpOpen }: Props) => {
<TableRow key={`skeleton-${i}`}>
{Array.from({ length: 6 }).map((__, j) => (
// eslint-disable-next-line react/no-array-index-key
- <td key={`skeleton-cell-${j}`} className="px-3 py-3">
+ <TableCell key={`skeleton-cell-${j}`}>
<Skeleton className="h-4 w-full" />
- </td>
+ </TableCell>
))}
</TableRow>
))}
diff --git a/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/ShareSecretsTable.tsx b/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/ShareSecretsTable.tsx
index a756eb2a1e..dbdc2e7b85 100644
--- a/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/ShareSecretsTable.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/ShareSecretsTable.tsx
@@ -9,6 +9,7 @@ import {
Skeleton,
Table,
TableBody,
+ TableCell,
TableHead,
TableHeader,
TableRow
@@ -62,9 +63,9 @@ export const ShareSecretsTable = ({ handlePopUpOpen }: Props) => {
<TableRow key={`skeleton-${i}`}>
{Array.from({ length: 7 }).map((__, j) => (
// eslint-disable-next-line react/no-array-index-key
- <td key={`skeleton-cell-${j}`} className="px-3 py-3">
+ <TableCell key={`skeleton-cell-${j}`}>
<Skeleton className="h-4 w-full" />
- </td>
+ </TableCell>
))}
</TableRow>
))}