Fix topnav active link discrepancy

This commit is contained in:
Alex Gleason 2020-04-10 20:16:34 -05:00
parent 33cbbaf953
commit 092fb5828b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -62,12 +62,12 @@ class TabsBar extends React.PureComponent {
let links = [];
if (logo) {
links.push(
<NavLink key='logo' className='tabs-bar__link--logo' to='/' data-preview-title-id='column.home' style={{ padding: '0', backgroundImage: `url(${logo})` }}>
<Link key='logo' className='tabs-bar__link--logo' to='/' data-preview-title-id='column.home' style={{ padding: '0', backgroundImage: `url(${logo})` }}>
<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />
</NavLink>)
</Link>)
}
links.push(
<NavLink key='home' className='tabs-bar__link' to='/' data-preview-title-id='column.home'>
<NavLink key='home' className='tabs-bar__link' exact to='/' data-preview-title-id='column.home'>
<i className='tabs-bar__link__icon home'/>
<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />
</NavLink>)