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 a27a8a6 commit f999548Copy full SHA for f999548
src/components/Links.js
@@ -9,12 +9,21 @@ class Links extends React.Component {
9
Object.values( links )
10
.map( link => {
11
key++;
12
- return (
+ let link;
13
+
14
+ if ( link.rel !== undefined ) {
15
+ link = <a href={ link.url } rel={link.rel}>{ link.name }</a>
16
+ } else {
17
+ link = <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>
- <a href={ link.url }>{ link.name }</a>
22
+ ${ link }
23
</li>
- )
24
25
+ );
26
+ return output;
27
} )
28
)
29
}
@@ -28,4 +37,4 @@ class Links extends React.Component {
37
38
30
39
31
-export default Links;
40
+export default Links;
0 commit comments