From 1202d3d45d14c992e49b6594ab2a55f12799e3b4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 18 Sep 2021 20:54:55 -0500 Subject: [PATCH] StatusPage: async components --- app/soapbox/pages/status_page.js | 40 +++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/app/soapbox/pages/status_page.js b/app/soapbox/pages/status_page.js index 9e1ba0399..492afb0bd 100644 --- a/app/soapbox/pages/status_page.js +++ b/app/soapbox/pages/status_page.js @@ -1,12 +1,16 @@ import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; +import BundleContainer from '../features/ui/containers/bundle_container'; import PrimaryNavigation from 'soapbox/components/primary_navigation'; -import WhoToFollowPanel from 'soapbox/features/ui/components/who_to_follow_panel'; -import TrendsPanel from 'soapbox/features/ui/components/trends_panel'; -import PromoPanel from 'soapbox/features/ui/components/promo_panel'; -import FeaturesPanel from 'soapbox/features/ui/components/features_panel'; -import SignUpPanel from 'soapbox/features/ui/components/sign_up_panel'; +import { + WhoToFollowPanel, + TrendsPanel, + PromoPanel, + FeaturesPanel, + SignUpPanel, +} from 'soapbox/features/ui/util/async-components'; +// import GroupSidebarPanel from '../features/groups/sidebar_panel'; import LinkFooter from 'soapbox/features/ui/components/link_footer'; import { getFeatures } from 'soapbox/utils/features'; @@ -46,10 +50,28 @@ class StatusPage extends ImmutablePureComponent {
- {showTrendsPanel && } - {showWhoToFollowPanel && } - {me ? : } - + {me ? ( + + {Component => } + + ) : ( + + {Component => } + + )} + {showTrendsPanel && ( + + {Component => } + + )} + {showWhoToFollowPanel && ( + + {Component => } + + )} + + {Component => } +