feat: click on the profile to go to the home page (#386)

This commit is contained in:
Suemor 2023-04-19 20:08:44 +08:00 committed by GitHub
parent c7bc118234
commit ef8e997ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,11 @@ const Post = ({
<div>
<div className="flex items-center space-x-2">
<CharacterFloatCard siteId={post.character?.handle}>
<div className="flex items-center space-x-4 cursor-pointer">
<Link
target="_blank"
href={`/api/redirection?characterId=${post.characterId}`}
className="flex items-center space-x-4 cursor-pointer"
>
<span className="w-10 h-10 inline-block">
<Image
className="rounded-full"
@ -63,7 +67,7 @@ const Post = ({
{post.character?.metadata?.content?.name ||
post.character?.handle}
</span>
</div>
</Link>
</CharacterFloatCard>
<Titles characterId={post.characterId} />
<span className="text-zinc-400">·</span>