diff --git a/web/components/ui/Content/DesktopContent.tsx b/web/components/ui/Content/DesktopContent.tsx index cb3c6a9ca..748851480 100644 --- a/web/components/ui/Content/DesktopContent.tsx +++ b/web/components/ui/Content/DesktopContent.tsx @@ -52,8 +52,7 @@ export const DesktopContent: FC = ({ setShowFollowModal(true)} /> ); - - const items = [{ label: 'About', key: '2', children: aboutTabContent }]; + const items = [!!extraPageContent && { label: 'About', key: '2', children: aboutTabContent }]; if (supportFediverseFeatures) { items.push({ label: 'Followers', key: '3', children: followersTabContent }); } @@ -71,7 +70,11 @@ export const DesktopContent: FC = ({
- {items.length > 1 ? : aboutTabContent} + {items.length > 1 ? ( + + ) : ( + !!extraPageContent && aboutTabContent + )}
); diff --git a/web/components/ui/Content/MobileContent.tsx b/web/components/ui/Content/MobileContent.tsx index e5a0debbd..8405b10ca 100644 --- a/web/components/ui/Content/MobileContent.tsx +++ b/web/components/ui/Content/MobileContent.tsx @@ -86,9 +86,11 @@ export const MobileContent: FC = ({ const aboutTabContent = ( <> -
- -
+ {!!extraPageContent && ( +
+ +
+ )} ); const followersTabContent = (