Fix SidebarNavigation key errors
This commit is contained in:
parent
27a9f654d4
commit
d6d1cf58e9
1 changed files with 4 additions and 3 deletions
|
@ -51,6 +51,7 @@ type Props = {
|
|||
type SideNavLink = {
|
||||
title: string,
|
||||
link?: string,
|
||||
route?: string,
|
||||
onClick?: () => any,
|
||||
icon: string,
|
||||
extra?: Node,
|
||||
|
@ -60,7 +61,6 @@ type SideNavLink = {
|
|||
function SideNavigation(props: Props) {
|
||||
const {
|
||||
subscriptions,
|
||||
followedTags,
|
||||
doSignOut,
|
||||
email,
|
||||
purchaseSuccess,
|
||||
|
@ -72,6 +72,7 @@ function SideNavigation(props: Props) {
|
|||
unseenCount,
|
||||
homepageData,
|
||||
user,
|
||||
followedTags,
|
||||
} = props;
|
||||
|
||||
const { EXTRA_SIDEBAR_LINKS } = homepageData;
|
||||
|
@ -292,7 +293,7 @@ function SideNavigation(props: Props) {
|
|||
<Button label={__('FAQ')} href="https://odysee.com/@OdyseeHelp:b" />
|
||||
</li>
|
||||
<li className="navigation-link">
|
||||
<Button label={__('Support')} href="https://lbry.com/support" />
|
||||
<Button label={__('Support --[used in footer; general help/support]--')} href="https://lbry.com/support" />
|
||||
</li>
|
||||
<li className="navigation-link">
|
||||
<Button label={__('Terms')} href="https://lbry.com/termsofservice" />
|
||||
|
@ -325,7 +326,7 @@ function SideNavigation(props: Props) {
|
|||
// $FlowFixMe
|
||||
const { hideForUnauth, ...passedProps } = linkProps;
|
||||
return !email && linkProps.hideForUnauth && IS_WEB ? null : (
|
||||
<li key={linkProps.link}>
|
||||
<li key={linkProps.route || linkProps.link}>
|
||||
<Button
|
||||
{...passedProps}
|
||||
label={__(linkProps.title)}
|
||||
|
|
Loading…
Reference in a new issue