|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; |
|
|
|
|
import { defineMessages, injectIntl } from 'react-intl'; |
|
|
|
|
import { Link } from 'react-router-dom'; |
|
|
|
|
import Logo from 'mastodon/components/logo'; |
|
|
|
|
import { timelinePreview } from 'mastodon/initial_state'; |
|
|
|
|
import { timelinePreview, showTrends } from 'mastodon/initial_state'; |
|
|
|
|
import ColumnLink from './column_link'; |
|
|
|
|
import FollowRequestsColumnLink from './follow_requests_column_link'; |
|
|
|
|
import ListPanel from './list_panel'; |
|
|
|
@ -24,6 +24,7 @@ const messages = defineMessages({ |
|
|
|
|
preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' }, |
|
|
|
|
followsAndFollowers: { id: 'navigation_bar.follows_and_followers', defaultMessage: 'Follows and followers' }, |
|
|
|
|
about: { id: 'navigation_bar.about', defaultMessage: 'About' }, |
|
|
|
|
search: { id: 'navigation_bar.search', defaultMessage: 'Search' }, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export default @injectIntl |
|
|
|
@ -57,7 +58,12 @@ class NavigationPanel extends React.Component { |
|
|
|
|
</React.Fragment> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
<ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} /> |
|
|
|
|
{showTrends ? ( |
|
|
|
|
<ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} /> |
|
|
|
|
) : ( |
|
|
|
|
<ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} /> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
{(signedIn || timelinePreview) && ( |
|
|
|
|
<> |
|
|
|
|
<ColumnLink transparent to='/public/local' icon='users' text={intl.formatMessage(messages.local)} /> |
|
|
|
|