Added search to sidebar menu

This commit is contained in:
mgabdev 2019-10-22 16:19:12 -04:00
parent bb7b58675c
commit 1bf5f298b6

View File

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