Skip to content

Commit 3cab838

Browse files
committed
fix: resolve Skeleton type error in dashboard view
1 parent 34d8bc2 commit 3cab838

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/components/dashboard/dashboard-view.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
1919
import {
2020
getDashboardAnalytics,
2121
fetchDashboardData,
@@ -108,13 +108,13 @@ const SIDEBAR_ITEMS: SidebarItem[] = [
108108
/** Shimmer card used as a placeholder while data loads */
109109
function 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

0 commit comments

Comments
 (0)