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
No related merge requests found
...@@ -115,9 +115,11 @@ return <> ...@@ -115,9 +115,11 @@ return <>
</button> </button>
) )
} }
{inFeed &&
<button className="hover:bg-gray-200 p-2 w-full text-left"> <button className="hover:bg-gray-200 p-2 w-full text-left">
<Link to={`/post/${postid}`}>Voir la publication</Link> <Link to={`/post/${postid}`}>Voir la publication</Link>
</button> </button>
}
<button className="hover:bg-gray-200 p-2 w-full text-left" onClick={() => { <button className="hover:bg-gray-200 p-2 w-full text-left" onClick={() => {
copyLink(window.location.origin.toString() + '/post/' + postid); copyLink(window.location.origin.toString() + '/post/' + postid);
}} }}
......
...@@ -46,7 +46,7 @@ const PostView = () => { ...@@ -46,7 +46,7 @@ const PostView = () => {
likes={post.likesCount} likes={post.likesCount}
comments={post.commentsCount} comments={post.commentsCount}
comment_post={post.previewComments} comment_post={post.previewComments}
inFeed={true} inFeed={false}
></Post> ></Post>
)} )}
</div> </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