mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
refactor: fixes linting errors components/SiteNav/index.jsx
This commit is contained in:
parent
fde7ec15e9
commit
7762d68aef
@ -1,24 +1,23 @@
|
|||||||
import React from 'react'
|
import React from 'react';
|
||||||
import { RouteHandler, Link } from 'react-router'
|
import { Link } from 'react-router';
|
||||||
import { prefixLink } from 'gatsby-helpers'
|
import { prefixLink } from 'gatsby-helpers';
|
||||||
import './style.css'
|
import './style.css';
|
||||||
|
|
||||||
class SiteNav extends React.Component {
|
class SiteNav extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const {location} = this.props
|
|
||||||
return (
|
return (
|
||||||
<nav className='blog-nav'>
|
<nav className="blog-nav">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<Link to={ prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
|
<Link to={prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to={ prefixLink('/about/')} activeClassName="current"> About me
|
<Link to={prefixLink('/about/')} activeClassName="current"> About me
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to={ prefixLink('/contact/')} activeClassName="current"> Contact me
|
<Link to={prefixLink('/contact/')} activeClassName="current"> Contact me
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -27,8 +26,4 @@ class SiteNav extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SiteNav.propTypes = {
|
export default SiteNav;
|
||||||
location: React.PropTypes.object,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default SiteNav
|
|
||||||
|
Loading…
Reference in New Issue
Block a user