Added search to sidebar menu

This commit is contained in:
mgabdev 2019-10-22 16:19:12 -04:00
parent bb7b58675c
commit 1bf5f298b6
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,7 @@ const messages = defineMessages({
partners: { id: 'promo.partners', defaultMessage: 'Affiliate Partners' },
pro: { id: 'promo.gab_pro', defaultMessage: 'Upgrade to GabPRO' },
trends: { id: 'promo.trends', defaultMessage: 'Trends' },
search: { id: 'tabs_bar.search', defaultMessage: 'Search' },
})
const mapStateToProps = state => {
@ -163,6 +164,10 @@ class SidebarMenu extends ImmutablePureComponent {
<Icon id='users' fixedWidth />
<span className='sidebar-menu-item__title'>{intl.formatMessage(messages.partners)}</span>
</a>
<NavLink className='sidebar-menu-item' to='/search' onClick={this.handleSidebarClose}>
<Icon id='search' fixedWidth />
<span className='sidebar-menu-item__title'>{intl.formatMessage(messages.search)}</span>
</NavLink>
<a className='sidebar-menu-item' href='https://apps.gab.com'>
<Icon id='th' fixedWidth />
<span className='sidebar-menu-item__title'>{intl.formatMessage(messages.apps)}</span>