diff --git a/src/components/Post.tsx b/src/components/Post.tsx index a7ee78032463b4e5ec8f97f1fd27cf5c8f6986cc..0f0f3e029edfb58ff1bffc6a06f0a121e7539b1b 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -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); }} diff --git a/src/views/PostView.tsx b/src/views/PostView.tsx index fc54f6c6a5280d99ef022c1637c9d09bb19c7c8c..2beb93f20b72043b28a7d41611d36dd9eb6b706a 100644 --- a/src/views/PostView.tsx +++ b/src/views/PostView.tsx @@ -46,7 +46,7 @@ const PostView = () => { likes={post.likesCount} comments={post.commentsCount} comment_post={post.previewComments} - inFeed={true} + inFeed={false} ></Post> )} </div>