Skip to content

Commit

Permalink
fix: #157 post options based on roles
Browse files Browse the repository at this point in the history
  • Loading branch information
huilensolis committed May 5, 2024
1 parent 6cb1c39 commit 03761bd
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export function PostOptions({
}) {
return (
<div className="w-full flex justify-between gap-2">
{doesUserOwnPost && (
<>
<ul className="flex gap-2">
<ul className="flex gap-2">
{doesUserOwnPost && (
<>
<li className="flex w-full">
<DeletePostBtn postId={post_id} imageUrl={image_url} />
</li>
Expand All @@ -32,15 +32,15 @@ export function PostOptions({
<Pencil className="text-neutral-800 dark:text-neutral-300" />
</Link>
</li>
<li className="flex w-full">
<DownloadPostImage image_url={image_url} />
</li>
</ul>
<div>
<AddPostToCollectionBtn postId={post_id} />
</div>
</>
)}
</>
)}
<li className="flex w-full">
<DownloadPostImage image_url={image_url} />
</li>
</ul>
<div>
<AddPostToCollectionBtn postId={post_id} />
</div>
</div>
);
}

0 comments on commit 03761bd

Please sign in to comment.