Fixed issues with panel naming and importing after code split

• Fixed:
- issues with panel naming and importing after code split
This commit is contained in:
mgabdev 2020-08-12 18:39:50 -05:00
parent fa7dd139a8
commit 5a77411d2d
5 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@ const mapDispatchToProps = (dispatch) => ({
export default
@connect(mapStateToProps, mapDispatchToProps)
@injectIntl
class GroupSidebarPanel extends ImmutablePureComponent {
class GroupsPanel extends ImmutablePureComponent {
static propTypes = {
groupIds: ImmutablePropTypes.list,

View File

@ -9,7 +9,7 @@ import Responsive from '../features/ui/util/responsive_component'
import WrappedBundle from '../features/ui/util/wrapped_bundle'
import Heading from '../components/heading'
import {
GroupSidebarPanel,
GroupsPanel,
SignUpLogInPanel,
TrendsPanel,
} from '../features/ui/util/async_components'
@ -81,7 +81,7 @@ export default class ExploreLayout extends ImmutablePureComponent {
<div className={[_s.default, _s.width100PC, _s.z1].join(' ')}>
<div className={[_s.default, _s.mt15, _s.px10].join(' ')}>
<SignUpLogInPanel key='explore-page-signup-login-panel' isXS />
<WrappedBundle component={SignUpLogInPanel} componentParams={{ isXS: true }} />
</div>
{pageTitleBlock}
{children}
@ -109,7 +109,7 @@ export default class ExploreLayout extends ImmutablePureComponent {
page='explore'
layout={[
SignUpLogInPanel,
<WrappedBundle component={GroupSidebarPanel} componentParams={{ groupType: 'featured' }} />,
<WrappedBundle component={GroupsPanel} componentParams={{ groupType: 'featured' }} />,
<WrappedBundle component={TrendsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
]}
/>
@ -123,4 +123,4 @@ export default class ExploreLayout extends ImmutablePureComponent {
)
}
}
}

View File

@ -10,7 +10,7 @@ import WrappedBundle from '../features/ui/util/wrapped_bundle'
import {
LinkFooter,
SignUpPanel,
GroupSidebarPanel,
GroupsPanel,
GroupInfoPanel,
} from '../features/ui/util/async_components'
@ -52,7 +52,7 @@ export default class GroupLayout extends ImmutablePureComponent {
<div className={[_s.default, _s.width100PC].join(' ')}>
<GroupHeader group={group} relationships={relationships} isXS>
<GroupInfoPanel group={group} noPanel />
<WrappedBundle component={GroupInfoPanel} componentParams={{ group, noPanel: true }} />
</GroupHeader>
<div className={[_s.default, _s.width100PC, _s.z1].join(' ')}>
@ -82,7 +82,7 @@ export default class GroupLayout extends ImmutablePureComponent {
layout={[
<WrappedBundle component={GroupInfoPanel} componentParams={{ group }} />,
SignUpPanel,
GroupSidebarPanel,
GroupsPanel,
LinkFooter,
]}
/>

View File

@ -67,9 +67,9 @@ export default class ProfileLayout extends ImmutablePureComponent {
<div className={[_s.default, _s.z1, _s.width100PC, _s.alignItemsCenter].join(' ')}>
<ProfileHeader account={account} isXS>
<WrappedBundle component={ProfileInfoPanel} componentParams={{ account }} />
<WrappedBundle component={ProfileInfoPanel} componentParams={{ account, noPanel: true }} />
<Divider isSmall />
<WrappedBundle component={ProfileStatsPanel} componentParams={{ account }} />
<WrappedBundle component={ProfileStatsPanel} componentParams={{ account, noPanel: true }} />
</ProfileHeader>
<div className={[_s.default, _s.width100PC, , _s.flexRow, _s.justifyContentEnd, _s.py15].join(' ')}>

View File

@ -4,7 +4,7 @@ import PageTitle from '../features/ui/util/page_title'
import DefaultLayout from '../layouts/default_layout'
import {
LinkFooter,
GroupSidebarPanel,
GroupsPanel,
ProgressPanel,
TrendsPanel,
WhoToFollowPanel,
@ -50,7 +50,7 @@ class CommunityPage extends PureComponent {
ProgressPanel,
TrendsPanel,
WhoToFollowPanel,
GroupSidebarPanel,
GroupsPanel,
LinkFooter,
]}
>