mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
Merge pull request #20 from ihororlovskyi/issue-13
add activeClassName in SiteNav component (issue #19)
This commit is contained in:
commit
f84624c654
@ -10,15 +10,15 @@ class SiteNav extends React.Component {
|
||||
<nav className='blog-nav'>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to="/" className={ location.pathname === prefixLink('/') ? "current" : null }> Articles
|
||||
<Link to="/" activeClassName="current" onlyActiveOnIndex> Articles
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/about/" className={ location.pathname === prefixLink('/about/') ? "current" : null }> About me
|
||||
<Link to="/about/" activeClassName="current"> About me
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/contact/" className={ location.pathname === prefixLink('/contact/') ? "current" : null }> Contact me
|
||||
<Link to="/contact/" activeClassName="current"> Contact me
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user