Added LoggedOutSidebar component, to Layout

• Added:
- LoggedOutSidebar component
- LoggedOutSidebar to to Layout
This commit is contained in:
mgabdev
2020-07-24 20:22:00 -05:00
parent 6faa9eb48a
commit 9324ea92be
2 changed files with 128 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import {
BREAKPOINT_EXTRA_SMALL,
} from '../constants'
import { me } from '../initial_state'
import LoggedOutSidebar from '../components/logged_out_sidebar'
import Sidebar from '../components/sidebar'
import SidebarXS from '../components/sidebar_xs'
import SidebarPanelGroup from '../components/sidebar_panel_group'
@@ -50,8 +51,6 @@ export default class Layout extends PureComponent {
flexRow: 1,
justifyContentEnd: 1,
py15: 1,
mlAuto: !me,
mrAuto: !me,
})
return (
@@ -79,12 +78,19 @@ export default class Layout extends PureComponent {
{
!noSidebar &&
<Responsive min={BREAKPOINT_EXTRA_SMALL}>
<Sidebar
actions={actions}
showBackBtn={showBackBtn}
tabs={tabs}
title={title}
/>
{
!!me &&
<Sidebar
actions={actions}
showBackBtn={showBackBtn}
tabs={tabs}
title={title}
/>
}
{
!me &&
<LoggedOutSidebar title={title} />
}
</Responsive>
}