kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
PrimaryNavigation: add Search button
rodzic
c222e0da9d
commit
620aff7107
|
@ -69,6 +69,14 @@ class PrimaryNavigation extends React.PureComponent {
|
|||
<FormattedMessage id='tabs_bar.notifications' defaultMessage='Notifications' />
|
||||
</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>
|
||||
|
||||
{(features.chats && account) && <NavLink key='chats' className='btn grouped' to='/chats' data-preview-title-id='column.chats'>
|
||||
<IconWithCounter
|
||||
src={require('@tabler/icons/icons/messages.svg')}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
&--active {
|
||||
svg.icon-tabler-search {
|
||||
stroke-width: 2px;
|
||||
stroke-width: 2.3px;
|
||||
}
|
||||
|
||||
svg.icon-tabler-bell,
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
svg.icon-tabler {
|
||||
stroke-width: 1.5px;
|
||||
}
|
||||
|
||||
&--active {
|
||||
svg.icon-tabler-search {
|
||||
stroke-width: 2.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&::before {
|
||||
|
|
Ładowanie…
Reference in New Issue