From f379b973ab3244fb4b75e25c5cd3b1055c37e859 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 6 Aug 2020 00:14:29 -0500 Subject: [PATCH] Updated LoggedOutSidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - LoggedOutSidebar --- .../components/logged_out_sidebar.js | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/javascript/gabsocial/components/logged_out_sidebar.js b/app/javascript/gabsocial/components/logged_out_sidebar.js index c43612e9..52f14a09 100644 --- a/app/javascript/gabsocial/components/logged_out_sidebar.js +++ b/app/javascript/gabsocial/components/logged_out_sidebar.js @@ -3,7 +3,7 @@ import { me } from '../initial_state' import SidebarSectionTitle from './sidebar_section_title' import SidebarSectionItem from './sidebar_section_item' import Heading from './heading' -import BackButton from './back_button' +import LinkFooter from './link_footer' const messages = defineMessages({ explore: { id: 'explore', defaultMessage: 'Explore' }, @@ -16,11 +16,16 @@ class Sidebar extends PureComponent { static propTypes = { intl: PropTypes.object.isRequired, + showLinkFooter: PropTypes.bool, title: PropTypes.string, } render() { - const { intl, title } = this.props + const { + intl, + title, + showLinkFooter, + } = this.props if (!!me) return null @@ -28,7 +33,7 @@ class Sidebar extends PureComponent { { title: 'Home', icon: 'home', - to: '/home', + to: '/', }, { title: 'Search', @@ -41,9 +46,9 @@ class Sidebar extends PureComponent { to: '/groups', }, { - title: 'Explore', - icon: 'explore', - to: '/explore', + title: 'News', + icon: 'news', + to: '/news', }, ] @@ -104,6 +109,9 @@ class Sidebar extends PureComponent { } + { + showLinkFooter && + }