chore(avatar): update default image to use local shadcn.jpg

This commit is contained in:
cfngc4594 2025-04-16 15:48:06 +08:00
parent 1d0b74136f
commit 58222795fe
2 changed files with 1 additions and 1 deletions

BIN
public/shadcn.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -31,7 +31,7 @@ export async function AvatarButton() {
const session = await auth();
const t = await getTranslations("AvatarButton");
const isLoggedIn = !!session?.user;
const image = session?.user?.image ?? "https://github.com/shadcn.png";
const image = session?.user?.image ?? "/shadcn.jpg";
const name = session?.user?.name ?? "unknown";
const email = session?.user?.email ?? "unknwon@example.com";