From d9c50318be7bdd60f565a1ac8406fa453ddb1a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20JACOB?= <chloe.jacob4@etu.unistra.fr> Date: Tue, 28 Feb 2023 23:22:15 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20menu=20d'un=20post=20->=20a?= =?UTF-8?q?fficher=20un=20btn=20que=20si=20on=20est=20dans=20le=20feed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Post.tsx | 2 ++ src/views/PostView.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Post.tsx b/src/components/Post.tsx index a7ee780..0f0f3e0 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 fc54f6c..2beb93f 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> -- GitLab