From d417d8770962c778ee06ba07ae84ffaeca525844 Mon Sep 17 00:00:00 2001 From: highperfocused Date: Sat, 29 Nov 2025 20:05:57 +0100 Subject: [PATCH] fix: remove loading skeleton from HighlightsSection component --- .../highlights/HighlightsSection.tsx | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/components/highlights/HighlightsSection.tsx b/src/components/highlights/HighlightsSection.tsx index 2b29ac5..74e82f1 100644 --- a/src/components/highlights/HighlightsSection.tsx +++ b/src/components/highlights/HighlightsSection.tsx @@ -2,7 +2,6 @@ import type { NostrEvent } from '@nostrify/nostrify'; import { useHighlights } from '@/hooks/useHighlights'; import { Highlight } from './Highlight'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; -import { Skeleton } from '@/components/ui/skeleton'; import { Highlighter } from 'lucide-react'; interface HighlightsSectionProps { @@ -20,34 +19,7 @@ export function HighlightsSection({ const { data: highlights, isLoading } = useHighlights(event); if (isLoading) { - return ( - - - - - {title} - - - - {[1, 2].map((i) => ( - - -
-
- -
- - -
-
- -
-
-
- ))} -
-
- ); + return null; // Don't show loading state - just hide the section } if (!highlights || highlights.length === 0) {