Add `key` to footer links to appease React

pull/9325/head
J. Ryan Stinnett 2019-03-29 15:58:41 +00:00
parent 01794ae65f
commit fa10022496
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ module.exports = React.createClass({
const authFooterLinks = []; const authFooterLinks = [];
for (const linkEntry of links) { for (const linkEntry of links) {
authFooterLinks.push( authFooterLinks.push(
<a href={linkEntry.url} target="_blank" rel="noopener">{linkEntry.text}</a>, <a href={linkEntry.url} key={linkEntry.text} target="_blank" rel="noopener">
{linkEntry.text}
</a>,
); );
} }