Commit 265cdbb5 authored by mgabdev's avatar mgabdev

Updated HomePage to show Lists, Suggestions, Groups in sidebar if PRO (for now)

• Updated:
- HomePage to show Lists, Suggestions, Groups in sidebar if PRO (for now)
parent 05e97f74
......@@ -76,6 +76,21 @@ class HomePage extends React.PureComponent {
const { lazyLoaded } = this.state
const title = intl.formatMessage(messages.home)
const sidebarLayout = [
UserPanel,
ProgressPanel,
<WrappedBundle component={ProPanel} componentParams={{ isPro: isPro }} />,
<WrappedBundle component={TrendsBreakingPanel} />,
<WrappedBundle component={ShopPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
]
if (this.props.isPro) {
sidebarLayout.push(<WrappedBundle component={ListsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />)
sidebarLayout.push(<WrappedBundle component={UserSuggestionsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />)
sidebarLayout.push(<WrappedBundle component={GroupsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded, groupType: 'member' }} />)
}
sidebarLayout.push(LinkFooter)
return (
<DefaultLayout
......@@ -96,17 +111,7 @@ class HomePage extends React.PureComponent {
to: '/search',
},
]}
layout={[
UserPanel,
ProgressPanel,
<WrappedBundle component={ProPanel} componentParams={{ isPro: isPro }} />,
<WrappedBundle component={TrendsBreakingPanel} />,
<WrappedBundle component={ShopPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
// <WrappedBundle component={ListsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
// <WrappedBundle component={UserSuggestionsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
// <WrappedBundle component={GroupsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded, groupType: 'member' }} />,
LinkFooter,
]}
layout={sidebarLayout}
>
<PageTitle
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment