From 33b1c87dea5d225549ac2fd8b6885550fd225d45 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Sun, 3 Aug 2025 12:53:54 +0800 Subject: [PATCH] fix avator show n plaza --- src/components/plaza/PromptCard.tsx | 39 +++++++++++++---------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/src/components/plaza/PromptCard.tsx b/src/components/plaza/PromptCard.tsx index d16c8f1..c5491b6 100644 --- a/src/components/plaza/PromptCard.tsx +++ b/src/components/plaza/PromptCard.tsx @@ -5,18 +5,18 @@ import { useTranslations } from 'next-intl' import { useAuth } from '@/hooks/useAuth' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' -import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle +import { LegacyAvatar } from '@/components/ui/avatar' +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle } from '@/components/ui/card' -import { - Copy, - Download, - Eye, +import { + Copy, + Download, + Eye, Calendar, Check } from 'lucide-react' @@ -230,16 +230,13 @@ export function PromptCard({ prompt, onViewIncrement }: PromptCardProps) { {/* Author & Meta */}
-
- - - - {prompt.user.username?.[0]?.toUpperCase() || 'U'} - - +
+ {prompt.user.username || 'Anonymous'}