|
|
|
@ -67,47 +67,45 @@ class Explore extends PureComponent {
|
|
|
|
|
<Search />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='scrollable scrollable--flex' data-nosnippet>
|
|
|
|
|
{isSearching ? (
|
|
|
|
|
<SearchResults />
|
|
|
|
|
) : (
|
|
|
|
|
<>
|
|
|
|
|
<div className='account__section-headline'>
|
|
|
|
|
<NavLink exact to='/explore'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_statuses' defaultMessage='Posts' />
|
|
|
|
|
{isSearching ? (
|
|
|
|
|
<SearchResults />
|
|
|
|
|
) : (
|
|
|
|
|
<>
|
|
|
|
|
<div className='account__section-headline'>
|
|
|
|
|
<NavLink exact to='/explore'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_statuses' defaultMessage='Posts' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
|
|
|
|
|
<NavLink exact to='/explore/tags'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_tags' defaultMessage='Hashtags' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<NavLink exact to='/explore/suggestions'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.suggested_follows' defaultMessage='People' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
|
|
|
|
|
<NavLink exact to='/explore/tags'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_tags' defaultMessage='Hashtags' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<NavLink exact to='/explore/suggestions'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.suggested_follows' defaultMessage='People' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<NavLink exact to='/explore/links'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_links' defaultMessage='News' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Switch>
|
|
|
|
|
<Route path='/explore/tags' component={Tags} />
|
|
|
|
|
<Route path='/explore/links' component={Links} />
|
|
|
|
|
<Route path='/explore/suggestions' component={Suggestions} />
|
|
|
|
|
<Route exact path={['/explore', '/explore/posts', '/search']}>
|
|
|
|
|
<Statuses multiColumn={multiColumn} />
|
|
|
|
|
</Route>
|
|
|
|
|
</Switch>
|
|
|
|
|
|
|
|
|
|
<Helmet>
|
|
|
|
|
<title>{intl.formatMessage(messages.title)}</title>
|
|
|
|
|
<meta name='robots' content={isSearching ? 'noindex' : 'all'} />
|
|
|
|
|
</Helmet>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<NavLink exact to='/explore/links'>
|
|
|
|
|
<FormattedMessage tagName='div' id='explore.trending_links' defaultMessage='News' />
|
|
|
|
|
</NavLink>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Switch>
|
|
|
|
|
<Route path='/explore/tags' component={Tags} />
|
|
|
|
|
<Route path='/explore/links' component={Links} />
|
|
|
|
|
<Route path='/explore/suggestions' component={Suggestions} />
|
|
|
|
|
<Route exact path={['/explore', '/explore/posts', '/search']}>
|
|
|
|
|
<Statuses multiColumn={multiColumn} />
|
|
|
|
|
</Route>
|
|
|
|
|
</Switch>
|
|
|
|
|
|
|
|
|
|
<Helmet>
|
|
|
|
|
<title>{intl.formatMessage(messages.title)}</title>
|
|
|
|
|
<meta name='robots' content={isSearching ? 'noindex' : 'all'} />
|
|
|
|
|
</Helmet>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</Column>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|