From 5ed13de5d6f98cf07dab19c25e9acc23159960ae Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Wed, 27 Apr 2022 18:28:09 -0400 Subject: [PATCH] Revert "more lbrytv removal" This reverts commit 6acdfc9623d02fe65ed5781af30082e1b778036c. --- ui/analytics.js | 2 +- ui/component/sideNavigation/view.jsx | 23 ++++++++++++++++++++++- ui/component/userEmailNew/view.jsx | 3 ++- ui/redux/actions/user.js | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/ui/analytics.js b/ui/analytics.js index 7f97d7cea..132589d64 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -19,7 +19,7 @@ const WATCHMAN_BACKEND_ENDPOINT = 'https://watchman.na-backend.odysee.com/report if (isProduction) { ElectronCookies.enable({ - origin: 'https://lbry.com', + origin: 'https://lbry.tv', }); } diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index 4552646a1..a0f08ee2a 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -6,13 +6,15 @@ 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 { ENABLE_UI_NOTIFICATIONS } from 'config'; +import { DOMAIN, ENABLE_UI_NOTIFICATIONS } from 'config'; const FOLLOWED_ITEM_INITIAL_LIMIT = 10; const touch = isTouch(); @@ -182,6 +184,7 @@ 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); @@ -354,6 +357,23 @@ 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 = (