sforkowany z mirror/soapbox
PrimaryNavigation, ThumbNavigation: move Search to after Home
rodzic
1edfb0206a
commit
897f65cf72
|
@ -63,6 +63,14 @@ class PrimaryNavigation extends React.PureComponent {
|
|||
<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />
|
||||
</NavLink>
|
||||
|
||||
<NavLink key='search' className='btn grouped' to='/search'>
|
||||
<Icon
|
||||
src={require('@tabler/icons/icons/search.svg')}
|
||||
className={classNames('primary-navigation__icon', { 'svg-icon--active': location.pathname === '/search' })}
|
||||
/>
|
||||
<FormattedMessage id='navigation.search' defaultMessage='Search' />
|
||||
</NavLink>
|
||||
|
||||
{account && (
|
||||
<NavLink key='notifications' className='btn grouped' to='/notifications' data-preview-title-id='column.notifications'>
|
||||
<IconWithCounter
|
||||
|
@ -98,14 +106,6 @@ class PrimaryNavigation extends React.PureComponent {
|
|||
)
|
||||
)}
|
||||
|
||||
<NavLink key='search' className='btn grouped' to='/search'>
|
||||
<Icon
|
||||
src={require('@tabler/icons/icons/search.svg')}
|
||||
className={classNames('primary-navigation__icon', { 'svg-icon--active': location.pathname === '/search' })}
|
||||
/>
|
||||
<FormattedMessage id='navigation.search' defaultMessage='Search' />
|
||||
</NavLink>
|
||||
|
||||
{(account && isStaff(account)) && (
|
||||
<NavLink key='dashboard' className='btn grouped' to='/admin' data-preview-title-id='tabs_bar.dashboard'>
|
||||
<IconWithCounter
|
||||
|
|
|
@ -56,6 +56,16 @@ class ThumbNavigation extends React.PureComponent {
|
|||
</span>
|
||||
</NavLink>
|
||||
|
||||
<NavLink to='/search' className='thumb-navigation__link'>
|
||||
<Icon
|
||||
src={require('@tabler/icons/icons/search.svg')}
|
||||
className={classNames({ 'svg-icon--active': location.pathname === '/search' })}
|
||||
/>
|
||||
<span>
|
||||
<FormattedMessage id='navigation.search' defaultMessage='Search' />
|
||||
</span>
|
||||
</NavLink>
|
||||
|
||||
{account && (
|
||||
<NavLink to='/notifications' className='thumb-navigation__link'>
|
||||
<IconWithCounter
|
||||
|
@ -97,16 +107,6 @@ class ThumbNavigation extends React.PureComponent {
|
|||
)
|
||||
)}
|
||||
|
||||
<NavLink to='/search' className='thumb-navigation__link'>
|
||||
<Icon
|
||||
src={require('@tabler/icons/icons/search.svg')}
|
||||
className={classNames({ 'svg-icon--active': location.pathname === '/search' })}
|
||||
/>
|
||||
<span>
|
||||
<FormattedMessage id='navigation.search' defaultMessage='Search' />
|
||||
</span>
|
||||
</NavLink>
|
||||
|
||||
{(account && isStaff(account)) && (
|
||||
<NavLink key='dashboard' to='/admin' className='thumb-navigation__link'>
|
||||
<IconWithCounter
|
||||
|
|
Ładowanie…
Reference in New Issue