mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 10:40:09 +01:00 
			
		
		
		
	refactor: fixes linting errors components/SiteNav/index.jsx
This commit is contained in:
		@@ -1,34 +1,29 @@
 | 
			
		||||
import React from 'react'
 | 
			
		||||
import { RouteHandler, Link } from 'react-router'
 | 
			
		||||
import { prefixLink } from 'gatsby-helpers'
 | 
			
		||||
import './style.css'
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import { Link } from 'react-router';
 | 
			
		||||
import { prefixLink } from 'gatsby-helpers';
 | 
			
		||||
import './style.css';
 | 
			
		||||
 | 
			
		||||
class SiteNav extends React.Component {
 | 
			
		||||
    render() {
 | 
			
		||||
        const {location} = this.props
 | 
			
		||||
        return (
 | 
			
		||||
            <nav className='blog-nav'>
 | 
			
		||||
              <ul>
 | 
			
		||||
                <li>
 | 
			
		||||
                  <Link to={ prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
 | 
			
		||||
                  </Link>
 | 
			
		||||
                </li>
 | 
			
		||||
                <li>
 | 
			
		||||
                  <Link to={ prefixLink('/about/')} activeClassName="current"> About me
 | 
			
		||||
                  </Link>
 | 
			
		||||
                </li>
 | 
			
		||||
                <li>
 | 
			
		||||
                  <Link to={ prefixLink('/contact/')} activeClassName="current"> Contact me
 | 
			
		||||
                  </Link>
 | 
			
		||||
                </li>
 | 
			
		||||
              </ul>
 | 
			
		||||
            </nav>
 | 
			
		||||
            );
 | 
			
		||||
    }
 | 
			
		||||
  render() {
 | 
			
		||||
    return (
 | 
			
		||||
      <nav className="blog-nav">
 | 
			
		||||
        <ul>
 | 
			
		||||
          <li>
 | 
			
		||||
            <Link to={prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
 | 
			
		||||
            </Link>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li>
 | 
			
		||||
            <Link to={prefixLink('/about/')} activeClassName="current"> About me
 | 
			
		||||
            </Link>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li>
 | 
			
		||||
            <Link to={prefixLink('/contact/')} activeClassName="current"> Contact me
 | 
			
		||||
            </Link>
 | 
			
		||||
          </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
      </nav>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
SiteNav.propTypes = {
 | 
			
		||||
    location: React.PropTypes.object,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default SiteNav
 | 
			
		||||
export default SiteNav;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user