Hide tabs on Followers, Following… pages
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ffe14d9aa7
commit
54ad8f7fbb
3 changed files with 3 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -116,6 +116,8 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
|
|||
activeItem = 'profile';
|
||||
}
|
||||
|
||||
const showTabs = !['following', 'followers', 'pins'].some(path => pathname.includes(path));
|
||||
|
||||
return (
|
||||
<>
|
||||
<Layout.Main>
|
||||
|
@ -128,7 +130,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
|
|||
{Component => <Component username={username} account={account} />}
|
||||
</BundleContainer>
|
||||
|
||||
{account && (
|
||||
{account && showTabs && (
|
||||
<Tabs items={tabItems} activeItem={activeItem} />
|
||||
)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue