File tree Expand file tree Collapse file tree
frontend/src/components/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import toast from "react-hot-toast";
1515 * - Error state: "Failed to load streams" with a retry button
1616 */
1717
18- import { Skeleton } from "@/components/ui/Skeleton" ;
18+
1919import {
2020 getDashboardAnalytics ,
2121 fetchDashboardData ,
@@ -108,13 +108,13 @@ const SIDEBAR_ITEMS: SidebarItem[] = [
108108/** Shimmer card used as a placeholder while data loads */
109109function SkeletonCard ( { className = "" } : { className ?: string } ) {
110110 return (
111- < Skeleton
112- className = { `rounded-2xl relative overflow-hidden ${ className } ` }
111+ < div
112+ className = { `animate-pulse bg-gray-200 dark:bg-gray-700 rounded-2xl relative overflow-hidden ${ className } ` }
113113 aria-hidden = "true"
114114 >
115115 { /* shimmer sweep */ }
116116 < div className = "absolute inset-0 -translate-x-full animate-shimmer bg-gradient-to-r from-transparent via-white/10 to-transparent" />
117- </ Skeleton >
117+ </ div >
118118 ) ;
119119}
120120
You can’t perform that action at this time.
0 commit comments