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:
2025-08-07 23:44:34 +02:00
parent fdc1d3bc02
commit e61c11b8d4
15 changed files with 109 additions and 88 deletions

View File

@@ -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 />}