parent
f0cabbff7d
commit
1814733d5b
2 changed files with 9 additions and 10 deletions
|
@ -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<SideNavLink> = [];
|
||||
|
||||
SIDE_LINKS.push(HOME);
|
||||
if (isAuthenticated) {
|
||||
SIDE_LINKS.push(RECENT_FROM_FOLLOWING);
|
||||
}
|
||||
SIDE_LINKS.push(HOME);
|
||||
|
||||
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) {
|
|||
) : (
|
||||
<div className="navigation-links--micro">
|
||||
<Button
|
||||
label={__('Sign Up')}
|
||||
navigate={`/$/${PAGES.AUTH}`}
|
||||
label={__('Sign In')}
|
||||
icon={ICONS.SIGN_IN}
|
||||
className={classnames('navigation-link')}
|
||||
activeClass="navigation-link--active"
|
||||
|
@ -370,6 +368,7 @@ function SideNavigation(props: Props) {
|
|||
</div>
|
||||
))}
|
||||
</div>
|
||||
{sidebarOpen && helpLinks}
|
||||
</nav>
|
||||
)}
|
||||
|
||||
|
@ -448,6 +447,7 @@ function SideNavigation(props: Props) {
|
|||
)}
|
||||
{!isAuthenticated && unAuthNudge}
|
||||
</div>
|
||||
{helpLinks}
|
||||
</nav>
|
||||
<div
|
||||
className={classnames('navigation__overlay', {
|
||||
|
|
|
@ -187,7 +187,6 @@
|
|||
|
||||
.navigation-links--absolute {
|
||||
@extend .navigation-links;
|
||||
margin-top: 0;
|
||||
|
||||
.navigation-link {
|
||||
margin-bottom: 0;
|
||||
|
|
Loading…
Reference in a new issue