Updated LoggedOutSidebar

• Updated:
- LoggedOutSidebar
This commit is contained in:
mgabdev 2020-08-06 00:14:29 -05:00
parent f087d80e70
commit f379b973ab

View File

@ -3,7 +3,7 @@ import { me } from '../initial_state'
import SidebarSectionTitle from './sidebar_section_title' import SidebarSectionTitle from './sidebar_section_title'
import SidebarSectionItem from './sidebar_section_item' import SidebarSectionItem from './sidebar_section_item'
import Heading from './heading' import Heading from './heading'
import BackButton from './back_button' import LinkFooter from './link_footer'
const messages = defineMessages({ const messages = defineMessages({
explore: { id: 'explore', defaultMessage: 'Explore' }, explore: { id: 'explore', defaultMessage: 'Explore' },
@ -16,11 +16,16 @@ class Sidebar extends PureComponent {
static propTypes = { static propTypes = {
intl: PropTypes.object.isRequired, intl: PropTypes.object.isRequired,
showLinkFooter: PropTypes.bool,
title: PropTypes.string, title: PropTypes.string,
} }
render() { render() {
const { intl, title } = this.props const {
intl,
title,
showLinkFooter,
} = this.props
if (!!me) return null if (!!me) return null
@ -28,7 +33,7 @@ class Sidebar extends PureComponent {
{ {
title: 'Home', title: 'Home',
icon: 'home', icon: 'home',
to: '/home', to: '/',
}, },
{ {
title: 'Search', title: 'Search',
@ -41,9 +46,9 @@ class Sidebar extends PureComponent {
to: '/groups', to: '/groups',
}, },
{ {
title: 'Explore', title: 'News',
icon: 'explore', icon: 'news',
to: '/explore', to: '/news',
}, },
] ]
@ -104,6 +109,9 @@ class Sidebar extends PureComponent {
} }
</nav> </nav>
{
showLinkFooter && <LinkFooter noPadding />
}
</div> </div>
</div> </div>
</div> </div>