Skip to content

Open-source status page, incident response and uptime monitoring

feat(ui): add withCheckbox support to DataTableSkeleton (#2785)

Sandip Godhani25b3d65fbb72
diff --git a/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx b/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx
index 4edf01306..7298f07de 100644
--- a/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx
+++ b/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx
@@ -16,8 +16,6 @@ interface DataTableSkeletonProps {
rows?: number;
}
-// TODO: add checkbox skeleton (for MonitorTable e.g.)
-
export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {
return (
<Table>
diff --git a/apps/status-page/src/components/ui/data-table/data-table-skeleton.tsx b/apps/status-page/src/components/ui/data-table/data-table-skeleton.tsx
index f91f496cb..7298f07de 100644
--- a/apps/status-page/src/components/ui/data-table/data-table-skeleton.tsx
+++ b/apps/status-page/src/components/ui/data-table/data-table-skeleton.tsx
@@ -16,8 +16,6 @@ interface DataTableSkeletonProps {
rows?: number;
}
-// TODO: add checkbox skeleton (for MonitorTable e.g.)
-
export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {
return (
<Table>
@@ -39,7 +37,7 @@ export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {
</TableRow>
</TableHeader>
<TableBody>
- {new Array(rows).fill(0).map((_, i) => (
+ {Array.from({ length: rows }).map((_, i) => (
<TableRow key={i} className="hover:bg-transparent">
<TableCell>
<Skeleton className="my-1.5 h-4 w-full max-w-40" />