Move keys to li element

This commit is contained in:
LordMathis 2019-11-03 16:46:19 +01:00
parent 8457c838ab
commit 07c4de6424
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
1 changed files with 4 additions and 4 deletions

View File

@ -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>