Skip to content
Snippets Groups Projects
Commit d9c50318 authored by Chloé JACOB's avatar Chloé JACOB :alien:
Browse files

amélioration menu d'un post -> afficher un btn que si on est dans le feed

parent 731264c6
Branches
Tags
No related merge requests found
......@@ -115,9 +115,11 @@ return <>
</button>
)
}
{inFeed &&
<button className="hover:bg-gray-200 p-2 w-full text-left">
<Link to={`/post/${postid}`}>Voir la publication</Link>
</button>
}
<button className="hover:bg-gray-200 p-2 w-full text-left" onClick={() => {
copyLink(window.location.origin.toString() + '/post/' + postid);
}}
......
......@@ -46,7 +46,7 @@ const PostView = () => {
likes={post.likesCount}
comments={post.commentsCount}
comment_post={post.previewComments}
inFeed={true}
inFeed={false}
></Post>
)}
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment