chore: run lint fix
This commit is contained in:
+12
-15
@@ -16,39 +16,36 @@ export default function Reply({ post }: { post: PostWithUserDto }) {
|
||||
const year = created.getFullYear();
|
||||
|
||||
return (
|
||||
<div className='flex w-full gap-4'>
|
||||
<div className="flex w-full gap-4">
|
||||
<div>
|
||||
<Link href={`/profile/${post.user.clerkUserId}`}>
|
||||
<Image
|
||||
alt='user profile image'
|
||||
alt="user profile image"
|
||||
src={post.user.clerkImageUrl}
|
||||
width={40}
|
||||
height={40}
|
||||
className='rounded-full object-cover border-4 border-primary-accent'
|
||||
className="rounded-full object-cover border-4 border-primary-accent"
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
<div className='flex flex-col flex-1 w-full border border-gray-600 rounded-md'>
|
||||
<div className='flex flex-col w-full p-1'>
|
||||
<div className='flex justify-between dark:bg-primary-gray p-2'>
|
||||
<div className='text-sm'>
|
||||
<div className="flex flex-col flex-1 w-full border border-gray-600 rounded-md">
|
||||
<div className="flex flex-col w-full p-1">
|
||||
<div className="flex justify-between dark:bg-primary-gray p-2">
|
||||
<div className="text-sm">
|
||||
{`${username} `}
|
||||
<span className='text-[#7a838f]'>{`replied on ${month} ${day}, ${year}`}</span>
|
||||
<span className="text-[#7a838f]">{`replied on ${month} ${day}, ${year}`}</span>
|
||||
</div>
|
||||
{isLoaded && isSignedIn && user.id === post.user.clerkUserId ? (
|
||||
<PostActionModal postId={post._id} />
|
||||
) : null}
|
||||
</div>
|
||||
<div className='p-1'>
|
||||
<div className='p-2 rounded-md dark:bg-secondary-gray'>
|
||||
<div className="p-1">
|
||||
<div className="p-2 rounded-md dark:bg-secondary-gray">
|
||||
<PostContent content={Text.of(post.content).toString()} />
|
||||
</div>
|
||||
</div>
|
||||
<div className='p-1'>
|
||||
<PostActionButton
|
||||
postId={post._id}
|
||||
showReply={false}
|
||||
/>
|
||||
<div className="p-1">
|
||||
<PostActionButton postId={post._id} showReply={false} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user