From 949bbc59805da38df1e2a46c7bf50490771f6905 Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 27 Jun 2022 14:44:17 -0400 Subject: [PATCH] prune some isAuthenticated --- ui/component/settingSystem/index.js | 2 +- ui/component/sideNavigation/view.jsx | 23 +----------- ui/page/discover/index.js | 2 - ui/page/discover/view.jsx | 1 - ui/page/home/index.js | 2 - ui/page/home/view.jsx | 3 +- ui/page/invite/index.js | 25 ------------- ui/page/invite/view.jsx | 55 ---------------------------- ui/page/invited/index.js | 19 ---------- ui/page/invited/view.jsx | 18 --------- ui/page/search/index.js | 2 - ui/page/search/view.jsx | 1 - ui/page/tagsFollowing/index.js | 2 - ui/util/buildHomepage.js | 21 +---------- 14 files changed, 5 insertions(+), 171 deletions(-) delete mode 100644 ui/page/invite/index.js delete mode 100644 ui/page/invite/view.jsx delete mode 100644 ui/page/invited/index.js delete mode 100644 ui/page/invited/view.jsx 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 = (