sforkowany z mirror/soapbox
Merge branch 'wtf-auth' into 'develop'
Only display WhoToFollowPanel if authenticated See merge request soapbox-pub/soapbox!1820canvas-permission
commit
40099bfc7d
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Ładowanie…
Reference in New Issue