diff --git a/ui/component/settingSystem/index.js b/ui/component/settingSystem/index.js
index e4b44c0d1..1c011735c 100644
--- a/ui/component/settingSystem/index.js
+++ b/ui/component/settingSystem/index.js
@@ -11,7 +11,7 @@ import {
import { doSetDaemonSetting, doClearDaemonSetting, doFindFFmpeg } from 'redux/actions/settings';
import { selectAllowAnalytics } from 'redux/selectors/app';
import { selectDaemonSettings, selectFfmpegStatus, selectFindingFFmpeg } from 'redux/selectors/settings';
-import { selectUserVerifiedEmail } from 'redux/selectors/user';
+import { selectUserVerifiedEmail } from 'redux/selectors/user'; // here
import SettingSystem from './view';
diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx
index a0f08ee2a..4552646a1 100644
--- a/ui/component/sideNavigation/view.jsx
+++ b/ui/component/sideNavigation/view.jsx
@@ -6,15 +6,13 @@ import * as KEYCODES from 'constants/keycodes';
import React from 'react';
import Button from 'component/button';
import classnames from 'classnames';
-import Icon from 'component/common/icon';
import NotificationBubble from 'component/notificationBubble';
import DebouncedInput from 'component/common/debounced-input';
-import I18nMessage from 'component/i18nMessage';
import ChannelThumbnail from 'component/channelThumbnail';
import { useIsMobile, isTouch } from 'effects/use-screensize';
import { IS_MAC } from 'component/app/view';
import { useHistory } from 'react-router';
-import { DOMAIN, ENABLE_UI_NOTIFICATIONS } from 'config';
+import { ENABLE_UI_NOTIFICATIONS } from 'config';
const FOLLOWED_ITEM_INITIAL_LIMIT = 10;
const touch = isTouch();
@@ -184,7 +182,6 @@ function SideNavigation(props: Props) {
];
const notificationsEnabled = ENABLE_UI_NOTIFICATIONS || (user && user.experimental_ui);
- const isAuthenticated = Boolean(email);
const [pulseLibrary, setPulseLibrary] = React.useState(false);
const [expandSubscriptions, setExpandSubscriptions] = React.useState(false);
@@ -357,23 +354,6 @@ function SideNavigation(props: Props) {
return () => window.removeEventListener('keydown', handleKeydown);
}, [sidebarOpen, setSidebarOpen, isAbsolute]);
- const unAuthNudge =
- DOMAIN === 'lbry.tv' ? null : (
-
-
- }}>
- Sign up to earn %lbc% for you and your favorite creators.
-
-
- {' '}
-
- );
-
const helpLinks = (
-
@@ -437,7 +417,6 @@ function SideNavigation(props: Props) {
{getSubscriptionSection()}
{getFollowedTagsSection()}
- {!isAuthenticated && sidebarOpen && unAuthNudge}
)}
{(!canDisposeMenu || sidebarOpen) && shouldRenderLargeMenu && helpLinks}
diff --git a/ui/page/discover/index.js b/ui/page/discover/index.js
index 55890537e..cabb0e5a9 100644
--- a/ui/page/discover/index.js
+++ b/ui/page/discover/index.js
@@ -3,7 +3,6 @@ import { connect } from 'react-redux';
import { doResolveUri } from 'redux/actions/claims';
import { selectClaimForUri } from 'redux/selectors/claims';
import * as SETTINGS from 'constants/settings';
-import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { selectFollowedTags } from 'redux/selectors/tags';
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
import { makeSelectClientSetting } from 'redux/selectors/settings';
@@ -18,7 +17,6 @@ const select = (state, props) => {
followedTags: selectFollowedTags(state),
repostedUri: repostedUri,
repostedClaim: repostedUri ? selectClaimForUri(state, repostedUri) : null,
- isAuthenticated: selectUserVerifiedEmail(state),
tileLayout: makeSelectClientSetting(SETTINGS.TILE_LAYOUT)(state),
};
};
diff --git a/ui/page/discover/view.jsx b/ui/page/discover/view.jsx
index aad6af7a2..6eccc6ab3 100644
--- a/ui/page/discover/view.jsx
+++ b/ui/page/discover/view.jsx
@@ -24,7 +24,6 @@ type Props = {
repostedClaim: ?GenericClaim,
doToggleTagFollowDesktop: (string) => void,
doResolveUri: (string) => void,
- isAuthenticated: boolean,
dynamicRouteProps: RowDataItem,
tileLayout: boolean,
};
diff --git a/ui/page/home/index.js b/ui/page/home/index.js
index 232fccb9b..8dda5ff67 100644
--- a/ui/page/home/index.js
+++ b/ui/page/home/index.js
@@ -1,6 +1,5 @@
import { connect } from 'react-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
-import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import { selectShowMatureContent, selectHomepageData } from 'redux/selectors/settings';
@@ -9,7 +8,6 @@ import DiscoverPage from './view';
const select = (state) => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
- authenticated: selectUserVerifiedEmail(state),
showNsfw: selectShowMatureContent(state),
homepageData: selectHomepageData(state),
});
diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx
index f570fbca1..1e855d445 100644
--- a/ui/page/home/view.jsx
+++ b/ui/page/home/view.jsx
@@ -21,7 +21,7 @@ type Props = {
};
function HomePage(props: Props) {
- const { followedTags, subscribedChannels, authenticated, showNsfw, homepageData } = props;
+ const { followedTags, subscribedChannels, showNsfw, homepageData } = props;
const showPersonalizedChannels = subscribedChannels && subscribedChannels.length > 0;
const showPersonalizedTags = followedTags && followedTags.length > 0;
const showIndividualTags = showPersonalizedTags && followedTags.length < 5;
@@ -31,7 +31,6 @@ function HomePage(props: Props) {
homepageData,
isLargeScreen,
true,
- authenticated,
showPersonalizedChannels,
showPersonalizedTags,
subscribedChannels,
diff --git a/ui/page/invite/index.js b/ui/page/invite/index.js
deleted file mode 100644
index 44a45db3e..000000000
--- a/ui/page/invite/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import * as SETTINGS from 'constants/settings';
-import { connect } from 'react-redux';
-import {
- selectUserInviteStatusFailed,
- selectUserInviteStatusIsPending,
- selectUserVerifiedEmail,
-} from 'redux/selectors/user';
-// import { doFetchInviteStatus } from 'redux/actions/user';
-import { makeSelectClientSetting } from 'redux/selectors/settings';
-import { doSetClientSetting } from 'redux/actions/settings';
-import InvitePage from './view';
-
-const select = (state) => ({
- isFailed: selectUserInviteStatusFailed(state),
- isPending: selectUserInviteStatusIsPending(state),
- inviteAcknowledged: makeSelectClientSetting(SETTINGS.INVITE_ACKNOWLEDGED)(state),
- authenticated: selectUserVerifiedEmail(state),
-});
-
-const perform = (dispatch) => ({
- // fetchInviteStatus: () => dispatch(doFetchInviteStatus()),
- acknowledgeInivte: () => dispatch(doSetClientSetting(SETTINGS.INVITE_ACKNOWLEDGED, true)),
-});
-
-export default connect(select, perform)(InvitePage);
diff --git a/ui/page/invite/view.jsx b/ui/page/invite/view.jsx
deleted file mode 100644
index bf05bfc97..000000000
--- a/ui/page/invite/view.jsx
+++ /dev/null
@@ -1,55 +0,0 @@
-// @flow
-import { SITE_NAME } from 'config';
-import React from 'react';
-import BusyIndicator from 'component/common/busy-indicator';
-import InviteNew from 'component/inviteNew';
-import InviteList from 'component/inviteList';
-import Page from 'component/page';
-import RewardAuthIntro from 'component/rewardAuthIntro';
-
-type Props = {
- isPending: boolean,
- isFailed: boolean,
- inviteAcknowledged: boolean,
- authenticated: boolean,
- acknowledgeInivte: () => void,
- fetchInviteStatus: () => void,
-};
-
-class InvitePage extends React.PureComponent {
- componentDidMount() {
- const { fetchInviteStatus, inviteAcknowledged, acknowledgeInivte } = this.props;
- fetchInviteStatus();
-
- if (!inviteAcknowledged) {
- acknowledgeInivte();
- }
- }
-
- render() {
- const { isPending, isFailed, authenticated } = this.props;
-
- return (
-
- {!authenticated ? (
-
- ) : (
-
- {isPending && }
- {!isPending && isFailed && {__('Failed to retrieve invite status.')}}
- {!isPending && !isFailed && (
-
-
-
-
- )}
-
- )}
-
- );
- }
-}
-
-export default InvitePage;
diff --git a/ui/page/invited/index.js b/ui/page/invited/index.js
deleted file mode 100644
index 2d5478eed..000000000
--- a/ui/page/invited/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import { connect } from 'react-redux';
-import InvitedPage from './view';
-import { makeSelectPermanentUrlForUri } from 'redux/selectors/claims';
-import { withRouter } from 'react-router';
-
-const select = (state, props) => {
- const { match } = props;
- const { params } = match;
- const { referrer } = params;
- const sanitizedReferrer = referrer ? referrer.replace(':', '#') : '';
- const uri = `lbry://${sanitizedReferrer}`;
- return {
- fullUri: makeSelectPermanentUrlForUri(uri)(state),
- referrer: referrer,
- };
-};
-const perform = () => ({});
-
-export default withRouter(connect(select, perform)(InvitedPage));
diff --git a/ui/page/invited/view.jsx b/ui/page/invited/view.jsx
deleted file mode 100644
index 9b4a01055..000000000
--- a/ui/page/invited/view.jsx
+++ /dev/null
@@ -1,18 +0,0 @@
-// @flow
-import React from 'react';
-import Page from 'component/page';
-import Invited from 'component/invited';
-
-type Props = {
- fullUri: string,
- referrer: string,
-};
-export default function ReferredPage(props: Props) {
- const { fullUri, referrer } = props;
-
- return (
-
-
-
- );
-}
diff --git a/ui/page/search/index.js b/ui/page/search/index.js
index d1c140fd1..4a1792382 100644
--- a/ui/page/search/index.js
+++ b/ui/page/search/index.js
@@ -8,7 +8,6 @@ import {
makeSelectHasReachedMaxResultsLength,
} from 'redux/selectors/search';
import { selectShowMatureContent } from 'redux/selectors/settings';
-import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { getSearchQueryString } from 'util/query-params';
import SearchPage from './view';
@@ -36,7 +35,6 @@ const select = (state, props) => {
searchOptions,
isSearching: selectIsSearching(state),
uris: uris,
- isAuthenticated: selectUserVerifiedEmail(state),
hasReachedMaxResultsLength: hasReachedMaxResultsLength,
};
};
diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx
index b25d7616c..9f03d7732 100644
--- a/ui/page/search/view.jsx
+++ b/ui/page/search/view.jsx
@@ -16,7 +16,6 @@ type Props = {
search: (string, SearchOptions) => void,
isSearching: boolean,
uris: Array,
- isAuthenticated: boolean,
hasReachedMaxResultsLength: boolean,
};
diff --git a/ui/page/tagsFollowing/index.js b/ui/page/tagsFollowing/index.js
index bdd310dfe..c897771f3 100644
--- a/ui/page/tagsFollowing/index.js
+++ b/ui/page/tagsFollowing/index.js
@@ -1,6 +1,5 @@
import { connect } from 'react-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
-import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import DiscoverPage from './view';
import { makeSelectClientSetting } from 'redux/selectors/settings';
@@ -9,7 +8,6 @@ import * as SETTINGS from 'constants/settings';
const select = (state) => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
- email: selectUserVerifiedEmail(state),
tileLayout: makeSelectClientSetting(SETTINGS.TILE_LAYOUT)(state),
});
diff --git a/ui/util/buildHomepage.js b/ui/util/buildHomepage.js
index c2f8f0455..47fe77dea 100644
--- a/ui/util/buildHomepage.js
+++ b/ui/util/buildHomepage.js
@@ -128,7 +128,6 @@ export function GetLinksData(
all: any, // HomepageData type?
isLargeScreen: boolean,
isHomepage?: boolean = false,
- authenticated?: boolean,
showPersonalizedChannels?: boolean,
showPersonalizedTags?: boolean,
subscribedChannels?: Array,
@@ -170,6 +169,7 @@ export function GetLinksData(
// **************************************************************************
// @if CUSTOM_HOMEPAGE='false'
+ /*
const YOUTUBER_CHANNEL_IDS = [
'fb364ef587872515f545a5b4b3182b58073f230f',
'589276465a23c589801d874f484cc39f307d7ec7',
@@ -253,21 +253,7 @@ export function GetLinksData(
'ff80e24f41a2d706c70df9779542cba4715216c9',
'e8f68563d242f6ac9784dcbc41dd86c28a9391d6',
];
-
- const YOUTUBE_CREATOR_ROW = {
- title: __('CableTube Escape Artists'),
- link: `/$/${PAGES.DISCOVER}?${CS.CLAIM_TYPE}=${CS.CLAIM_STREAM}&${CS.CHANNEL_IDS_KEY}=${YOUTUBER_CHANNEL_IDS.join(
- ','
- )}`,
- options: {
- claimType: ['stream'],
- orderBy: CS.ORDER_BY_NEW_VALUE,
- pageSize: getPageSize(12),
- channelIds: YOUTUBER_CHANNEL_IDS,
- limitClaimsPerChannel: 1,
- releaseTime: `>${Math.floor(moment().subtract(1, 'months').startOf('week').unix())}`,
- },
- };
+ */
const TOP_CONTENT_TODAY = {
title: __('Top Content from Today'),
@@ -351,9 +337,6 @@ export function GetLinksData(
}
if (!CUSTOM_HOMEPAGE) {
- if (!authenticated) {
- rowData.push(YOUTUBE_CREATOR_ROW);
- }
rowData.push(TOP_CONTENT_TODAY);
if (language !== 'en') {
rowData.push(LANGUAGE_CATEGORY);