diff --git a/src/app/api/og/user/route.tsx b/src/app/api/og/user/route.tsx index c54e309c5..8b3c34212 100644 --- a/src/app/api/og/user/route.tsx +++ b/src/app/api/og/user/route.tsx @@ -33,6 +33,7 @@ export async function GET(req: NextRequest) {
{avatar ? ( + // eslint-disable-next-line @next/next/no-img-element {`${username} ) : (
diff --git a/src/app/compare/[users]/page.tsx b/src/app/compare/[users]/page.tsx index b56c5737e..fa4e35efe 100644 --- a/src/app/compare/[users]/page.tsx +++ b/src/app/compare/[users]/page.tsx @@ -229,6 +229,7 @@ function ProfileHeader({ alt={`${profile.username} avatar`} width={56} height={56} + unoptimized className="h-14 w-14 rounded-full border border-[var(--border)]" />
diff --git a/src/app/dashboard/settings/page.tsx b/src/app/dashboard/settings/page.tsx index 41cba8a5c..143d74564 100644 --- a/src/app/dashboard/settings/page.tsx +++ b/src/app/dashboard/settings/page.tsx @@ -17,6 +17,7 @@ import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { useLocale, useTranslations } from "next-intl"; import { localeMetadata, locales, type AppLocale } from "@/i18n/config"; +import Image from "next/image"; // ── Max length for the profile bio ────────────────────────────────────────── const BIO_MAX = 160; @@ -1697,10 +1698,13 @@ function SettingsPageContent() { className="flex items-center justify-between rounded-lg border border-[var(--border)] bg-[var(--control)] p-3" >
- {org.login} {org.login} diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index 9cec5a29a..06743807d 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -6,6 +6,7 @@ import { useSession } from "next-auth/react"; import { redirect, useSearchParams } from "next/navigation"; import { toast } from "sonner"; import Link from "next/link"; +import Image from "next/image"; // ── Types ───────────────────────────────────────────────────────────────────── @@ -66,13 +67,12 @@ function GitHubAvatar({ size?: number; }) { return ( - {`${login} ); } diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 6b53f5b0f..52851eb52 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -2,6 +2,8 @@ import React from "react"; import Link from "next/link"; import "./ProfileCard.css"; +import Image from "next/image"; + export type SocialLink = { href: string; @@ -35,10 +37,13 @@ export default function ProfileCard({
- {`Avatar
diff --git a/src/components/SponsorAnalytics.tsx b/src/components/SponsorAnalytics.tsx index 3be064ed4..9289c62e2 100644 --- a/src/components/SponsorAnalytics.tsx +++ b/src/components/SponsorAnalytics.tsx @@ -4,6 +4,8 @@ import { useCallback, useEffect, useState, useMemo } from "react"; import { Heart, Users, DollarSign, RefreshCw, Trophy, Info, ExternalLink } from "lucide-react"; import { ResponsiveContainer, LineChart, Line, YAxis, Tooltip, XAxis } from "recharts"; import { toast } from "sonner"; +import Image from "next/image"; + interface ActiveSponsor { login: string; @@ -361,10 +363,12 @@ function SponsorAvatar({ sponsor, tierType }: { sponsor: ActiveSponsor; tierType }[tierType]; const content = sponsor.avatarUrl ? ( - {sponsor.name} ) : (