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:
parent
fa7dd139a8
commit
5a77411d2d
@ -25,7 +25,7 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class GroupSidebarPanel extends ImmutablePureComponent {
|
class GroupsPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
groupIds: ImmutablePropTypes.list,
|
groupIds: ImmutablePropTypes.list,
|
||||||
|
@ -9,7 +9,7 @@ import Responsive from '../features/ui/util/responsive_component'
|
|||||||
import WrappedBundle from '../features/ui/util/wrapped_bundle'
|
import WrappedBundle from '../features/ui/util/wrapped_bundle'
|
||||||
import Heading from '../components/heading'
|
import Heading from '../components/heading'
|
||||||
import {
|
import {
|
||||||
GroupSidebarPanel,
|
GroupsPanel,
|
||||||
SignUpLogInPanel,
|
SignUpLogInPanel,
|
||||||
TrendsPanel,
|
TrendsPanel,
|
||||||
} from '../features/ui/util/async_components'
|
} 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.width100PC, _s.z1].join(' ')}>
|
||||||
<div className={[_s.default, _s.mt15, _s.px10].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>
|
</div>
|
||||||
{pageTitleBlock}
|
{pageTitleBlock}
|
||||||
{children}
|
{children}
|
||||||
@ -109,7 +109,7 @@ export default class ExploreLayout extends ImmutablePureComponent {
|
|||||||
page='explore'
|
page='explore'
|
||||||
layout={[
|
layout={[
|
||||||
SignUpLogInPanel,
|
SignUpLogInPanel,
|
||||||
<WrappedBundle component={GroupSidebarPanel} componentParams={{ groupType: 'featured' }} />,
|
<WrappedBundle component={GroupsPanel} componentParams={{ groupType: 'featured' }} />,
|
||||||
<WrappedBundle component={TrendsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
|
<WrappedBundle component={TrendsPanel} componentParams={{ isLazy: true, shouldLoad: lazyLoaded }} />,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
@ -123,4 +123,4 @@ export default class ExploreLayout extends ImmutablePureComponent {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -10,7 +10,7 @@ import WrappedBundle from '../features/ui/util/wrapped_bundle'
|
|||||||
import {
|
import {
|
||||||
LinkFooter,
|
LinkFooter,
|
||||||
SignUpPanel,
|
SignUpPanel,
|
||||||
GroupSidebarPanel,
|
GroupsPanel,
|
||||||
GroupInfoPanel,
|
GroupInfoPanel,
|
||||||
} from '../features/ui/util/async_components'
|
} from '../features/ui/util/async_components'
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ export default class GroupLayout extends ImmutablePureComponent {
|
|||||||
<div className={[_s.default, _s.width100PC].join(' ')}>
|
<div className={[_s.default, _s.width100PC].join(' ')}>
|
||||||
|
|
||||||
<GroupHeader group={group} relationships={relationships} isXS>
|
<GroupHeader group={group} relationships={relationships} isXS>
|
||||||
<GroupInfoPanel group={group} noPanel />
|
<WrappedBundle component={GroupInfoPanel} componentParams={{ group, noPanel: true }} />
|
||||||
</GroupHeader>
|
</GroupHeader>
|
||||||
|
|
||||||
<div className={[_s.default, _s.width100PC, _s.z1].join(' ')}>
|
<div className={[_s.default, _s.width100PC, _s.z1].join(' ')}>
|
||||||
@ -82,7 +82,7 @@ export default class GroupLayout extends ImmutablePureComponent {
|
|||||||
layout={[
|
layout={[
|
||||||
<WrappedBundle component={GroupInfoPanel} componentParams={{ group }} />,
|
<WrappedBundle component={GroupInfoPanel} componentParams={{ group }} />,
|
||||||
SignUpPanel,
|
SignUpPanel,
|
||||||
GroupSidebarPanel,
|
GroupsPanel,
|
||||||
LinkFooter,
|
LinkFooter,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -67,9 +67,9 @@ export default class ProfileLayout extends ImmutablePureComponent {
|
|||||||
<div className={[_s.default, _s.z1, _s.width100PC, _s.alignItemsCenter].join(' ')}>
|
<div className={[_s.default, _s.z1, _s.width100PC, _s.alignItemsCenter].join(' ')}>
|
||||||
|
|
||||||
<ProfileHeader account={account} isXS>
|
<ProfileHeader account={account} isXS>
|
||||||
<WrappedBundle component={ProfileInfoPanel} componentParams={{ account }} />
|
<WrappedBundle component={ProfileInfoPanel} componentParams={{ account, noPanel: true }} />
|
||||||
<Divider isSmall />
|
<Divider isSmall />
|
||||||
<WrappedBundle component={ProfileStatsPanel} componentParams={{ account }} />
|
<WrappedBundle component={ProfileStatsPanel} componentParams={{ account, noPanel: true }} />
|
||||||
</ProfileHeader>
|
</ProfileHeader>
|
||||||
|
|
||||||
<div className={[_s.default, _s.width100PC, , _s.flexRow, _s.justifyContentEnd, _s.py15].join(' ')}>
|
<div className={[_s.default, _s.width100PC, , _s.flexRow, _s.justifyContentEnd, _s.py15].join(' ')}>
|
||||||
|
@ -4,7 +4,7 @@ import PageTitle from '../features/ui/util/page_title'
|
|||||||
import DefaultLayout from '../layouts/default_layout'
|
import DefaultLayout from '../layouts/default_layout'
|
||||||
import {
|
import {
|
||||||
LinkFooter,
|
LinkFooter,
|
||||||
GroupSidebarPanel,
|
GroupsPanel,
|
||||||
ProgressPanel,
|
ProgressPanel,
|
||||||
TrendsPanel,
|
TrendsPanel,
|
||||||
WhoToFollowPanel,
|
WhoToFollowPanel,
|
||||||
@ -50,7 +50,7 @@ class CommunityPage extends PureComponent {
|
|||||||
ProgressPanel,
|
ProgressPanel,
|
||||||
TrendsPanel,
|
TrendsPanel,
|
||||||
WhoToFollowPanel,
|
WhoToFollowPanel,
|
||||||
GroupSidebarPanel,
|
GroupsPanel,
|
||||||
LinkFooter,
|
LinkFooter,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user