Add link to profile page

This commit is contained in:
gpt-engineer-app[bot]
2025-09-28 20:54:59 +00:00
parent 6a46b1c14a
commit e841fd2b7c

View File

@@ -371,7 +371,7 @@ export default function Profile() {
<h1 className="text-3xl font-bold"> <h1 className="text-3xl font-bold">
{profile.display_name || profile.username} {profile.display_name || profile.username}
</h1> </h1>
{profile.display_name && <Badge variant="secondary">@{profile.username}</Badge>} {profile.display_name && <Badge variant="secondary" className="cursor-pointer hover:bg-secondary/80" onClick={() => navigate(`/profile/${profile.username}`)}>@{profile.username}</Badge>}
</div> </div>
{profile.bio && <p className="text-muted-foreground mb-4 max-w-2xl"> {profile.bio && <p className="text-muted-foreground mb-4 max-w-2xl">