mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-06 10:41:20 +02:00
fix: improve image handling and loading states across components
* Refactored image rendering in CommentCard, NoteCard, GalleryCard, QuickViewNoteCard, and TrendingImage components to use Next.js Image component for better performance and responsiveness. * Updated loading state management in FollowButton and LoginForm components to ensure proper dependency tracking. * Cleaned up unused Head imports in Tag and Upload pages for better code clarity. * Enhanced dependency arrays in useEffect hooks for improved reliability in various components.
This commit is contained in:
@@ -9,6 +9,7 @@ import ConnectedRelaysButton from "@/components/headerComponents/ConnectedRelays
|
||||
import AuthButton from "./AuthButton"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { UserIcon } from "lucide-react"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
|
||||
export function TopNavigation() {
|
||||
const [pubkey, setPubkey] = useState<string | null>(null)
|
||||
@@ -47,6 +48,7 @@ export function TopNavigation() {
|
||||
<TopNavigationItems items={siteConfig.mainNav} />
|
||||
<div className="flex flex-1 items-center justify-end space-x-4">
|
||||
<nav className="flex items-center space-x-2">
|
||||
<Badge variant="secondary" className="hidden sm:inline">v{siteConfig.version}</Badge>
|
||||
<ConnectedRelaysButton />
|
||||
<DropdownThemeMode />
|
||||
{pubkey !== null ? <AvatarDropdown /> : <AuthButton />}
|
||||
|
||||
Reference in New Issue
Block a user