From 038431f95cb1547935162109164699abc6f044b6 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 22 Jul 2021 23:51:29 -0400 Subject: [PATCH] channel follow first run on master --- ui/component/userChannelFollowIntro/view.jsx | 27 ++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/ui/component/userChannelFollowIntro/view.jsx b/ui/component/userChannelFollowIntro/view.jsx index 970d41f69..b558b0a7c 100644 --- a/ui/component/userChannelFollowIntro/view.jsx +++ b/ui/component/userChannelFollowIntro/view.jsx @@ -6,12 +6,11 @@ import Nag from 'component/common/nag'; import { parseURI } from 'lbry-redux'; import Button from 'component/button'; import Card from 'component/common/card'; -import { AUTO_FOLLOW_CHANNELS, CUSTOM_HOMEPAGE } from 'config'; +import { AUTO_FOLLOW_CHANNELS, CUSTOM_HOMEPAGE, SIMPLE_SITE, SITE_NAME } from 'config'; type Props = { subscribedChannels: Array, onContinue: () => void, - onBack: () => void, channelSubscribe: (sub: Subscription) => void, homepageData: any, prefsReady: boolean, @@ -22,7 +21,7 @@ const channelsToSubscribe = AUTO_FOLLOW_CHANNELS.trim() .filter((x) => x !== ''); function UserChannelFollowIntro(props: Props) { - const { subscribedChannels, channelSubscribe, onContinue, onBack, homepageData, prefsReady } = props; + const { subscribedChannels, channelSubscribe, onContinue, homepageData, prefsReady } = props; const { PRIMARY_CONTENT } = homepageData; let channelIds; if (PRIMARY_CONTENT && CUSTOM_HOMEPAGE) { @@ -49,25 +48,27 @@ function UserChannelFollowIntro(props: Props) { -
-
+ } + defaultOrderBy={SIMPLE_SITE ? CS.ORDER_BY_TOP : CS.ORDER_BY_TRENDING} defaultFreshness={CS.FRESH_ALL} claimType="channel" claimIds={CUSTOM_HOMEPAGE && channelIds ? channelIds : undefined} defaultTags={followingCount > 3 ? CS.TAGS_FOLLOWED : undefined} + maxPages={SIMPLE_SITE ? 3 : undefined} /> {followingCount > 0 && (