From 54ad8f7fbb370cb810d34d6604bf0a358b21d067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 13 Jul 2022 20:54:43 +0200 Subject: [PATCH] =?UTF-8?q?Hide=20tabs=20on=20Followers,=20Following?= =?UTF-8?q?=E2=80=A6=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/followers/index.js | 2 +- app/soapbox/features/following/index.js | 2 +- app/soapbox/pages/profile_page.tsx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/followers/index.js b/app/soapbox/features/followers/index.js index 7a77e46a5..f09fa6ad0 100644 --- a/app/soapbox/features/followers/index.js +++ b/app/soapbox/features/followers/index.js @@ -118,7 +118,7 @@ class Followers extends ImmutablePureComponent { } return ( - + + = ({ params, children }) => { activeItem = 'profile'; } + const showTabs = !['following', 'followers', 'pins'].some(path => pathname.includes(path)); + return ( <> @@ -128,7 +130,7 @@ const ProfilePage: React.FC = ({ params, children }) => { {Component => } - {account && ( + {account && showTabs && ( )}