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