refactor: fixes linting errors components/SiteLinks(index.jsx

This commit is contained in:
Simon Reinsperger 2017-03-08 17:27:24 +01:00
parent 2a77a52ed2
commit fde7ec15e9

View File

@ -1,62 +1,59 @@
import React from 'react'
import { RouteHandler, Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import { config } from 'config'
import './style.css'
import '../../static/fonts/fontawesome/style.css'
import React from 'react';
import { config } from 'config';
import './style.css';
import '../../static/fonts/fontawesome/style.css';
class SiteLinks extends React.Component {
render () {
return (
<div className="blog-links">
<ul>
{config.siteTwitterUrl && (
<li>
<a href={config.siteTwitterUrl}>
<i className="fa fa-twitter" />
</a>
</li>
)}
{config.siteGithubUrl && (
<li>
<a href={config.siteGithubUrl}>
<i className="fa fa-github-alt" />
</a>
</li>
)}
{config.siteVkUrl && (
<li>
<a href={config.siteVkUrl}><i className="fa fa-vk" /></a>
</li>
)}
</ul>
<ul>
{config.siteEmailUrl && (
<li>
<a href={`mailto:${config.siteEmailUrl}`}>
<i className="fa fa-envelope-o" />
</a>
</li>
)}
{config.siteTelegramUrl && (
<li>
<a href={config.siteTelegramUrl}>
<i className="fa fa-paper-plane" />
</a>
</li>
)}
</ul>
<ul>
{config.siteRssUrl && (
<li>
<a href={config.siteRssUrl}><i className="fa fa-rss" /></a>
</li>
)}
</ul>
</div>
)
render() {
return (
<div className="blog-links">
<ul>
{config.siteTwitterUrl && (
<li>
<a href={config.siteTwitterUrl}>
<i className="fa fa-twitter" />
</a>
</li>
)}
{config.siteGithubUrl && (
<li>
<a href={config.siteGithubUrl}>
<i className="fa fa-github-alt" />
</a>
</li>
)}
{config.siteVkUrl && (
<li>
<a href={config.siteVkUrl}><i className="fa fa-vk" /></a>
</li>
)}
</ul>
<ul>
{config.siteEmailUrl && (
<li>
<a href={`mailto:${config.siteEmailUrl}`}>
<i className="fa fa-envelope-o" />
</a>
</li>
)}
{config.siteTelegramUrl && (
<li>
<a href={config.siteTelegramUrl}>
<i className="fa fa-paper-plane" />
</a>
</li>
)}
</ul>
<ul>
{config.siteRssUrl && (
<li>
<a href={config.siteRssUrl}><i className="fa fa-rss" /></a>
</li>
)}
</ul>
</div>
);
}
}
export default SiteLinks
export default SiteLinks;