Move keys to li element
This commit is contained in:
parent
8457c838ab
commit
07c4de6424
|
@ -15,8 +15,8 @@ export default class Home extends Component {
|
||||||
|
|
||||||
const socialLinks = objKeys.map((val) => {
|
const socialLinks = objKeys.map((val) => {
|
||||||
const link = (
|
const link = (
|
||||||
<li>
|
<li key={key}>
|
||||||
<a key={key} href={this.props.config.social[val]} role="link">
|
<a href={this.props.config.social[val]} role="link">
|
||||||
<i className={`fa fa-${val} fa-3x`} aria-hidden="true" />
|
<i className={`fa fa-${val} fa-3x`} aria-hidden="true" />
|
||||||
<span className="sr-only">{val}</span>
|
<span className="sr-only">{val}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -27,8 +27,8 @@ export default class Home extends Component {
|
||||||
})
|
})
|
||||||
|
|
||||||
socialLinks.push(
|
socialLinks.push(
|
||||||
<li>
|
<li key={key}>
|
||||||
<a key={key} href={`mailto:${this.props.config.email}`} role="link">
|
<a href={`mailto:${this.props.config.email}`} role="link">
|
||||||
<i className="fa fa-envelope-o fa-3x" aria-hidden="true" />
|
<i className="fa fa-envelope-o fa-3x" aria-hidden="true" />
|
||||||
<span className="sr-only">e-mail</span>
|
<span className="sr-only">e-mail</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue