We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80307ea commit a54bdc4Copy full SHA for a54bdc4
2 files changed
apps/dashboard/app/(main)/websites/[id]/revenue/_components/recent-transactions.tsx
@@ -42,7 +42,7 @@ export function RecentTransactions({
42
if (isLoading) {
43
return (
44
<div className="space-y-3">
45
- {[...new Array(5)].map((_, i) => (
+ {Array.from({ length: 5 }).map((_, i) => (
46
<TransactionSkeleton key={i} />
47
))}
48
</div>
apps/dashboard/app/(main)/websites/[id]/revenue/page.tsx
@@ -89,7 +89,7 @@ const PageHeaderSkeleton = () => (
89
90
const RevenueMetricsSkeleton = () => (
91
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 md:grid-cols-3 lg:grid-cols-4">
92
- {[...new Array(4)].map((_, i) => (
+ {Array.from({ length: 4 }).map((_, i) => (
93
<div
94
className="overflow-hidden rounded-lg border bg-card"
95
key={`${i + 1}-metrics-skeleton`}
0 commit comments