@@ -59,6 +59,31 @@ export function InvoiceSkeleton() {
59
59
) ;
60
60
}
61
61
62
+ export function InvoicesSkeleton ( ) {
63
+ return (
64
+ < div className = "flex w-full flex-col md:col-span-4" >
65
+ < div className = "mb-4 h-8 w-36 rounded-md bg-gray-100" />
66
+ < div
67
+ className = { `${ shimmer } relative w-full overflow-hidden md:col-span-4` }
68
+ >
69
+ < div className = "flex grow flex-col justify-between rounded-xl bg-gray-50 p-4" >
70
+ < div className = "bg-white px-6" >
71
+ < InvoiceSkeleton />
72
+ < InvoiceSkeleton />
73
+ < InvoiceSkeleton />
74
+ < InvoiceSkeleton />
75
+ < InvoiceSkeleton />
76
+ < div className = "flex items-center bg-gray-200 pb-2 pt-6" >
77
+ < div className = "h-5 w-5 rounded-full bg-gray-200" />
78
+ < div className = "ml-2 h-4 w-20 rounded-md bg-gray-200" />
79
+ </ div >
80
+ </ div >
81
+ </ div >
82
+ </ div >
83
+ </ div >
84
+ ) ;
85
+ }
86
+
62
87
export function LatestInvoicesSkeleton ( ) {
63
88
return (
64
89
< div
@@ -67,11 +92,6 @@ export function LatestInvoicesSkeleton() {
67
92
< div className = "mb-4 h-8 w-36 rounded-md bg-gray-100" />
68
93
< div className = "flex grow flex-col justify-between rounded-xl bg-gray-100 p-4" >
69
94
< div className = "bg-white px-6" >
70
- < InvoiceSkeleton />
71
- < InvoiceSkeleton />
72
- < InvoiceSkeleton />
73
- < InvoiceSkeleton />
74
- < InvoiceSkeleton />
75
95
< div className = "flex items-center pb-2 pt-6" >
76
96
< div className = "h-5 w-5 rounded-full bg-gray-200" />
77
97
< div className = "ml-2 h-4 w-20 rounded-md bg-gray-200" />
@@ -89,10 +109,7 @@ export default function DashboardSkeleton() {
89
109
className = { `${ shimmer } relative mb-4 h-8 w-36 overflow-hidden rounded-md bg-gray-100` }
90
110
/>
91
111
< div className = "grid gap-6 sm:grid-cols-2 lg:grid-cols-4" >
92
- < CardSkeleton />
93
- < CardSkeleton />
94
- < CardSkeleton />
95
- < CardSkeleton />
112
+ < CardsSkeleton />
96
113
</ div >
97
114
< div className = "mt-6 grid grid-cols-1 gap-6 md:grid-cols-4 lg:grid-cols-8" >
98
115
< RevenueChartSkeleton />
0 commit comments