aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-11 21:40:55 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-11 21:40:55 +0800
commit2471d4098fcbdc3735f77254f7f0cfcb9d597f9d (patch)
tree7ef4ea74e82e8551ddc4ae8310b9228284d29edd /packages/website/ts/@next/components
parent33b36eaf07025d774cf8cdb728c331451605f3c9 (diff)
downloaddexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar.gz
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar.bz2
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar.lz
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar.xz
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.tar.zst
dexon-sol-tools-2471d4098fcbdc3735f77254f7f0cfcb9d597f9d.zip
Add missing keys
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r--packages/website/ts/@next/components/dropdowns/dropdown_developers.tsx6
-rw-r--r--packages/website/ts/@next/components/dropdowns/dropdown_products.tsx2
-rw-r--r--packages/website/ts/@next/components/header.tsx3
3 files changed, 5 insertions, 6 deletions
diff --git a/packages/website/ts/@next/components/dropdowns/dropdown_developers.tsx b/packages/website/ts/@next/components/dropdowns/dropdown_developers.tsx
index 8cd2798ce..532aa7314 100644
--- a/packages/website/ts/@next/components/dropdowns/dropdown_developers.tsx
+++ b/packages/website/ts/@next/components/dropdowns/dropdown_developers.tsx
@@ -71,7 +71,7 @@ export const DropdownDevelopers = withTheme((props: Props) => (
<WrapGrid isCentered={false} isWrapped={true}>
{_.map(introData, (item, index) => (
- <RouterLink to={item.url}>
+ <RouterLink key={`introLink-${index}`} to={item.url}>
{item.label}
</RouterLink>
))}
@@ -86,7 +86,7 @@ export const DropdownDevelopers = withTheme((props: Props) => (
<ul>
{_.map(docsData, (item, index) => (
- <li>
+ <li key={`docsLink-${index}`}>
<RouterLink to={item.url}>
{item.label}
</RouterLink>
@@ -102,7 +102,7 @@ export const DropdownDevelopers = withTheme((props: Props) => (
<ul>
{_.map(linksData, (item, index) => (
- <li>
+ <li key={`usefulLink-${index}`}>
<RouterLink to={item.url}>
{item.label}
</RouterLink>
diff --git a/packages/website/ts/@next/components/dropdowns/dropdown_products.tsx b/packages/website/ts/@next/components/dropdowns/dropdown_products.tsx
index 6eb321aa6..9551dd802 100644
--- a/packages/website/ts/@next/components/dropdowns/dropdown_products.tsx
+++ b/packages/website/ts/@next/components/dropdowns/dropdown_products.tsx
@@ -25,7 +25,7 @@ const navData = [
export const DropdownProducts = () => (
<List>
{_.map(navData, (item, index) => (
- <li>
+ <li key={`productLink-${index}`}>
<Link to={item.url}>
<Heading
asElement="h3"
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx
index 52207ddce..bce5ccec7 100644
--- a/packages/website/ts/@next/components/header.tsx
+++ b/packages/website/ts/@next/components/header.tsx
@@ -71,9 +71,8 @@ export class Header extends React.Component<HeaderProps, HeaderState> {
const Subnav = link.dropdownComponent;
return (
- <Wrapper>
+ <Wrapper key={`nav-${index}`}>
<Link
- key={`nav-${index}`}
href={link.url}
isTransparent={true}
isNoBorder={true}