Revert "add back sign up nudge"

This reverts commit f0cabbff7d.
This commit is contained in:
Sean Yesmunt 2020-11-10 10:35:55 -05:00
parent f0cabbff7d
commit 1814733d5b
2 changed files with 9 additions and 10 deletions

View file

@ -149,7 +149,7 @@ function SideNavigation(props: Props) {
hideForUnauth: true, hideForUnauth: true,
}, },
{ {
title: 'Rewards', label: 'Rewards',
navigate: `/$/${PAGES.REWARDS}`, navigate: `/$/${PAGES.REWARDS}`,
icon: ICONS.REWARDS, icon: ICONS.REWARDS,
hideForUnauth: true, hideForUnauth: true,
@ -202,10 +202,9 @@ function SideNavigation(props: Props) {
icon: ICONS.HELP, icon: ICONS.HELP,
}, },
]; ];
if (PINNED_URI_1 && PINNED_LABEL_1) { if (PINNED_URI_1 && PINNED_LABEL_1) {
MOBILE_LINKS.push({ MOBILE_LINKS.push({
title: PINNED_LABEL_1, label: PINNED_LABEL_1,
navigate: PINNED_URI_1, navigate: PINNED_URI_1,
icon: ICONS.PINNED, icon: ICONS.PINNED,
}); });
@ -213,7 +212,7 @@ function SideNavigation(props: Props) {
if (PINNED_URI_2 && PINNED_LABEL_2) { if (PINNED_URI_2 && PINNED_LABEL_2) {
MOBILE_LINKS.push({ MOBILE_LINKS.push({
title: PINNED_LABEL_2, label: PINNED_LABEL_2,
navigate: PINNED_URI_2, navigate: PINNED_URI_2,
icon: ICONS.PINNED, icon: ICONS.PINNED,
}); });
@ -223,9 +222,10 @@ function SideNavigation(props: Props) {
const isAuthenticated = Boolean(email); const isAuthenticated = Boolean(email);
// SIDE LINKS: FOLLOWING, HOME, [FULL,] [EXTRA] // SIDE LINKS: FOLLOWING, HOME, [FULL,] [EXTRA]
let SIDE_LINKS: Array<SideNavLink> = []; let SIDE_LINKS: Array<SideNavLink> = [];
if (isAuthenticated) {
SIDE_LINKS.push(HOME);
SIDE_LINKS.push(RECENT_FROM_FOLLOWING); SIDE_LINKS.push(RECENT_FROM_FOLLOWING);
}
SIDE_LINKS.push(HOME);
if (!SIMPLE_SITE) { if (!SIMPLE_SITE) {
SIDE_LINKS.push(...FULL_LINKS); SIDE_LINKS.push(...FULL_LINKS);
@ -248,7 +248,6 @@ function SideNavigation(props: Props) {
return true; return true;
}) })
: UNAUTH_LINKS; : UNAUTH_LINKS;
React.useEffect(() => { React.useEffect(() => {
if (purchaseSuccess) { if (purchaseSuccess) {
setPulseLibrary(true); setPulseLibrary(true);
@ -361,8 +360,7 @@ function SideNavigation(props: Props) {
) : ( ) : (
<div className="navigation-links--micro"> <div className="navigation-links--micro">
<Button <Button
label={__('Sign Up')} label={__('Sign In')}
navigate={`/$/${PAGES.AUTH}`}
icon={ICONS.SIGN_IN} icon={ICONS.SIGN_IN}
className={classnames('navigation-link')} className={classnames('navigation-link')}
activeClass="navigation-link--active" activeClass="navigation-link--active"
@ -370,6 +368,7 @@ function SideNavigation(props: Props) {
</div> </div>
))} ))}
</div> </div>
{sidebarOpen && helpLinks}
</nav> </nav>
)} )}
@ -448,6 +447,7 @@ function SideNavigation(props: Props) {
)} )}
{!isAuthenticated && unAuthNudge} {!isAuthenticated && unAuthNudge}
</div> </div>
{helpLinks}
</nav> </nav>
<div <div
className={classnames('navigation__overlay', { className={classnames('navigation__overlay', {

View file

@ -187,7 +187,6 @@
.navigation-links--absolute { .navigation-links--absolute {
@extend .navigation-links; @extend .navigation-links;
margin-top: 0;
.navigation-link { .navigation-link {
margin-bottom: 0; margin-bottom: 0;