Skip to content

Commit

Permalink
move link component on top card
Browse files Browse the repository at this point in the history
  • Loading branch information
Osmait committed Nov 2, 2023
1 parent 9b0cd4b commit 8aa85de
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions FrontendRedSocial/red-social/app/components/card-post.tsx
Expand Up @@ -28,28 +28,28 @@ export default function CardPost({ post }: Props) {
{
user ?
<>
<CardHeader className="justify-between">
<div className="flex gap-5">
<Avatar
isBordered
radius="full"
size="md"
src={imgUrl}
/>
<div className="flex gap-1 items-center justify-center">
<Link href={`/home/profile/${user?.id}`} className="hover:border-b-1">
<h4 className="text-small font-semibold leading-none text-default-600">
{`${user?.name} ${user?.lastName}`}
</h4>
</Link>
<h5 className="text-small tracking-tight text-default-400">
{`@${user?.name}${user?.lastName}`}
</h5>
<Link href={`/home/post/${post.post.id}`}>
<CardHeader className="justify-between">
<div className="flex gap-5">
<Avatar
isBordered
radius="full"
size="md"
src={imgUrl}
/>
<div className="flex gap-1 items-center justify-center">
<Link href={`/home/profile/${user?.id}`} className="hover:border-b-1">
<h4 className="text-small font-semibold leading-none text-default-600">
{`${user?.name} ${user?.lastName}`}
</h4>
</Link>
<h5 className="text-small tracking-tight text-default-400">
{`@${user?.name}${user?.lastName}`}
</h5>
</div>
</div>
</div>
</CardHeader>
</CardHeader>

<Link href={`/home/post/${post.post.id}`}>
<CardBody className="px-3 py-0 text-small text-white">
<p>{post.post.content}</p>
</CardBody>
Expand Down

0 comments on commit 8aa85de

Please sign in to comment.