diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-28 11:25:36 +0500 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-28 11:25:36 +0500 |
| commit | 64a8091a530157abcdd8c72f42e08f440ecbed8d (patch) | |
| tree | fde4be8115bbfa3b593d3a691c93442116c15687 /src/components/top-nav/index.js | |
| parent | Change of date headings (diff) | |
| download | githunt-64a8091a530157abcdd8c72f42e08f440ecbed8d.tar.gz | |
Fix linter issues and UI
Diffstat (limited to '')
| -rw-r--r-- | src/components/top-nav/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/top-nav/index.js b/src/components/top-nav/index.js index 3480ea7..365e481 100644 --- a/src/components/top-nav/index.js +++ b/src/components/top-nav/index.js @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; +import { Link } from 'react-router-dom'; import './styles.css'; import Logo from '../icons/logo'; @@ -8,13 +9,13 @@ import Logo from '../icons/logo'; const TopNav = (props) => ( <div className='top-nav'> <div className="container clearfix"> - <a href='/' className="logo clearfix float-left"> + <Link to="/" className="logo clearfix float-left"> <Logo/> <div className="logo-text"> <h4>GitHunt</h4> <p className="text-muted">Most starred projects on GitHub</p> </div> - </a> + </Link> <div className="float-right duration-btns"> <button onClick={ () => props.updateDateJump('year') } className={ |
