refactor(ui): add shared character avatar

This commit is contained in:
2026-07-10 18:35:17 +08:00
parent 7d29dbd72f
commit 098b675f44
9 changed files with 78 additions and 30 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
"use client";
import { useMemo } from "react";
import Image from "next/image";
import { RefreshCw, Sparkles } from "lucide-react";
import { CharacterAvatar } from "@/app/_components";
import { AppBottomNav, MobileShell } from "@/app/_components/core";
import { ROUTES } from "@/router/routes";
import { useAppNavigator } from "@/router/use-app-navigator";
@@ -93,11 +93,11 @@ export function PrivateRoomScreen() {
<div className={styles.identity}>
<div className={styles.avatarFrame}>
<Image
<CharacterAvatar
src={avatarUrl}
alt={displayName}
width={72}
height={72}
size="100%"
imageSize={72}
priority
/>
</div>