We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3fdc60 commit 096755cCopy full SHA for 096755c
src/components/Links.js
@@ -9,17 +9,17 @@ class Links extends React.Component {
9
Object.values( links )
10
.map( link => {
11
key++;
12
- let link;
+ let linkHtml;
13
14
if ( link.rel !== undefined ) {
15
- link = <a href={ link.url } rel={link.rel}>{ link.name }</a>
+ linkHtml = <a href={ link.url } rel={ link.rel }>{ link.name }</a>
16
} else {
17
- link = <a href={ link.url }>{ link.name }</a>
+ linkHtml = <a href={ link.url }>{ link.name }</a>
18
};
19
let output = (
20
<li key={ key } className="links--single">
21
<span className={ `${ link.prefix } fa-${ link.icon }` }></span>
22
- ${ link }
+ { linkHtml }
23
</li>
24
25
);
0 commit comments