From 1814733d5b9fcf9bb8caa4ede2495375b97fa062 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 10 Nov 2020 10:35:55 -0500 Subject: [PATCH] Revert "add back sign up nudge" This reverts commit f0cabbff7d99af730f72e0e62a5d2b6ff0eff88b. --- ui/component/sideNavigation/view.jsx | 18 +++++++++--------- ui/scss/component/_navigation.scss | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index 45a902a65..99bafaa5a 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -149,7 +149,7 @@ function SideNavigation(props: Props) { hideForUnauth: true, }, { - title: 'Rewards', + label: 'Rewards', navigate: `/$/${PAGES.REWARDS}`, icon: ICONS.REWARDS, hideForUnauth: true, @@ -202,10 +202,9 @@ function SideNavigation(props: Props) { icon: ICONS.HELP, }, ]; - if (PINNED_URI_1 && PINNED_LABEL_1) { MOBILE_LINKS.push({ - title: PINNED_LABEL_1, + label: PINNED_LABEL_1, navigate: PINNED_URI_1, icon: ICONS.PINNED, }); @@ -213,7 +212,7 @@ function SideNavigation(props: Props) { if (PINNED_URI_2 && PINNED_LABEL_2) { MOBILE_LINKS.push({ - title: PINNED_LABEL_2, + label: PINNED_LABEL_2, navigate: PINNED_URI_2, icon: ICONS.PINNED, }); @@ -223,9 +222,10 @@ function SideNavigation(props: Props) { const isAuthenticated = Boolean(email); // SIDE LINKS: FOLLOWING, HOME, [FULL,] [EXTRA] let SIDE_LINKS: Array = []; - + if (isAuthenticated) { + SIDE_LINKS.push(RECENT_FROM_FOLLOWING); + } SIDE_LINKS.push(HOME); - SIDE_LINKS.push(RECENT_FROM_FOLLOWING); if (!SIMPLE_SITE) { SIDE_LINKS.push(...FULL_LINKS); @@ -248,7 +248,6 @@ function SideNavigation(props: Props) { return true; }) : UNAUTH_LINKS; - React.useEffect(() => { if (purchaseSuccess) { setPulseLibrary(true); @@ -361,8 +360,7 @@ function SideNavigation(props: Props) { ) : (
+ {sidebarOpen && helpLinks} )} @@ -448,6 +447,7 @@ function SideNavigation(props: Props) { )} {!isAuthenticated && unAuthNudge} + {helpLinks}