Only show WhoToFollowPanel if authenticated

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-10-10 00:32:09 +02:00
parent 26a0c567bc
commit c1dcc91f76
4 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ const DefaultPage: React.FC = ({ children }) => {
{Component => <Component limit={3} key='trends-panel' />}
</BundleContainer>
)}
{features.suggestions && (
{me && features.suggestions && (
<BundleContainer fetchComponent={WhoToFollowPanel}>
{Component => <Component limit={3} key='wtf-panel' />}
</BundleContainer>

View file

@ -103,7 +103,7 @@ const HomePage: React.FC = ({ children }) => {
{Component => <Component limit={10} />}
</BundleContainer>
)}
{features.suggestions && (
{me && features.suggestions && (
<BundleContainer fetchComponent={WhoToFollowPanel}>
{Component => <Component limit={3} />}
</BundleContainer>

View file

@ -137,7 +137,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
<BundleContainer fetchComponent={PinnedAccountsPanel}>
{Component => <Component account={account} limit={5} key='pinned-accounts-panel' />}
</BundleContainer>
) : features.suggestions && (
) : me && features.suggestions && (
<BundleContainer fetchComponent={WhoToFollowPanel}>
{Component => <Component limit={3} key='wtf-panel' />}
</BundleContainer>

View file

@ -43,7 +43,7 @@ const StatusPage: React.FC<IStatusPage> = ({ children }) => {
{Component => <Component limit={3} key='trends-panel' />}
</BundleContainer>
)}
{features.suggestions && (
{me && features.suggestions && (
<BundleContainer fetchComponent={WhoToFollowPanel}>
{Component => <Component limit={3} key='wtf-panel' />}
</BundleContainer>