@@ -116,11 +119,11 @@ export default class ProfileLayout extends ImmutablePureComponent {
diff --git a/app/javascript/gabsocial/layouts/settings_layout.js b/app/javascript/gabsocial/layouts/settings_layout.js
index a3c10f5a..aca9cbd1 100644
--- a/app/javascript/gabsocial/layouts/settings_layout.js
+++ b/app/javascript/gabsocial/layouts/settings_layout.js
@@ -3,12 +3,15 @@ import {
BREAKPOINT_EXTRA_SMALL,
} from '../constants'
import { me } from '../initial_state'
-import SidebarXS from '../components/sidebar_xs'
import NavigationBar from '../components/navigation_bar'
import FooterBar from '../components/footer_bar'
import Responsive from '../features/ui/util/responsive_component'
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
import SettingsSidebar from '../components/settings_sidebar'
+import WrappedBundle from '../features/ui/util/wrapped_bundle'
+import {
+ SidebarXS,
+} from '../features/ui/util/async_components'
export default class SettingsLayout extends PureComponent {
@@ -33,7 +36,7 @@ export default class SettingsLayout extends PureComponent {
-
+
,
-
,
-
,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/community_page.js b/app/javascript/gabsocial/pages/community_page.js
index 66a7f4ad..a6aa8f3a 100644
--- a/app/javascript/gabsocial/pages/community_page.js
+++ b/app/javascript/gabsocial/pages/community_page.js
@@ -1,12 +1,14 @@
import { defineMessages, injectIntl } from 'react-intl'
import { openModal } from '../actions/modal'
import PageTitle from '../features/ui/util/page_title'
-import GroupSidebarPanel from '../components/panel/groups_panel'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import ProgressPanel from '../components/panel/progress_panel'
-import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ GroupSidebarPanel,
+ ProgressPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
community: { 'id': 'column.community', 'defaultMessage': 'Community feed' },
@@ -45,11 +47,11 @@ class CommunityPage extends PureComponent {
},
]}
layout={[
-
,
-
,
-
,
-
,
-
,
+ ProgressPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+ GroupSidebarPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/groups_page.js b/app/javascript/gabsocial/pages/groups_page.js
index 6531c5c8..12e7e04f 100644
--- a/app/javascript/gabsocial/pages/groups_page.js
+++ b/app/javascript/gabsocial/pages/groups_page.js
@@ -2,11 +2,14 @@ import { Fragment } from 'react'
import { me } from '../initial_state'
import { defineMessages, injectIntl } from 'react-intl'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
import Text from '../components/text'
-import GroupsPanel from '../components/panel/groups_panel'
import DefaultLayout from '../layouts/default_layout'
import GroupsCollection from '../features/groups_collection'
+import WrappedBundle from '../features/ui/util/wrapped_bundle'
+import {
+ GroupsPanel,
+ LinkFooter,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
groups: { id: 'groups', defaultMessage: 'Groups' },
@@ -80,9 +83,9 @@ class GroupsPage extends PureComponent {
const layout = []
if (!!me) {
- layout.push(
)
+ layout.push(
)
}
- layout.push(
)
+ layout.push(LinkFooter)
return (
,
-
,
-
,
-
,
+ ProgressPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/home_page.js b/app/javascript/gabsocial/pages/home_page.js
index c1e31376..8bb66ab3 100644
--- a/app/javascript/gabsocial/pages/home_page.js
+++ b/app/javascript/gabsocial/pages/home_page.js
@@ -4,19 +4,22 @@ import { defineMessages, injectIntl } from 'react-intl'
import { MODAL_HOME_TIMELINE_SETTINGS } from '../constants'
import { me } from '../initial_state'
import PageTitle from '../features/ui/util/page_title'
-import GroupsPanel from '../components/panel/groups_panel'
-import ListsPanel from '../components/panel/lists_panel'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import ShopPanel from '../components/panel/shop_panel'
-import ProgressPanel from '../components/panel/progress_panel'
-import ProPanel from '../components/panel/pro_panel'
-import UserPanel from '../components/panel/user_panel'
-import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
import TimelineComposeBlock from '../components/timeline_compose_block'
import Divider from '../components/divider'
import PullToRefresher from '../components/pull_to_refresher'
+import WrappedBundle from '../features/ui/util/wrapped_bundle'
+import {
+ UserPanel,
+ GroupsPanel,
+ LinkFooter,
+ ListsPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+ ProPanel,
+ ShopPanel,
+ ProgressPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
home: { id: 'home', defaultMessage: 'Home' },
@@ -99,15 +102,15 @@ class HomePage extends PureComponent {
},
]}
layout={[
-
,
-
,
-
,
-
,
-
,
-
,
-
,
-
,
-
,
+ UserPanel,
+ ProgressPanel,
+
,
+ TrendsPanel,
+
,
+
,
+
,
+
,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/list_page.js b/app/javascript/gabsocial/pages/list_page.js
index aabb9d73..e2d3ea8c 100644
--- a/app/javascript/gabsocial/pages/list_page.js
+++ b/app/javascript/gabsocial/pages/list_page.js
@@ -7,11 +7,14 @@ import {
// MODAL_LIST_TIMELINE_SETTINGS,
} from '../constants'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
import DefaultLayout from '../layouts/default_layout'
-import ListDetailsPanel from '../components/panel/list_details_panel'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import TrendsPanel from '../components/panel/trends_panel'
+import WrappedBundle from '../features/ui/util/wrapped_bundle'
+import {
+ ListDetailsPanel,
+ LinkFooter,
+ TrendsPanel,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
list: { id: 'list', defaultMessage: 'List' },
@@ -77,10 +80,10 @@ class ListPage extends ImmutablePureComponent {
// },
]}
layout={[
-
,
-
,
-
,
-
,
+
,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/lists_page.js b/app/javascript/gabsocial/pages/lists_page.js
index d54d566a..febce807 100644
--- a/app/javascript/gabsocial/pages/lists_page.js
+++ b/app/javascript/gabsocial/pages/lists_page.js
@@ -1,10 +1,12 @@
import { openModal } from '../actions/modal'
import { defineMessages, injectIntl } from 'react-intl'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ TrendsPanel,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
lists: { id: 'lists', defaultMessage: 'Lists' },
@@ -45,9 +47,9 @@ class ListsPage extends PureComponent {
},
]}
layout={[
-
,
-
,
-
,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
showBackBtn
>
diff --git a/app/javascript/gabsocial/pages/modal_page.js b/app/javascript/gabsocial/pages/modal_page.js
index 30959515..052a4d92 100644
--- a/app/javascript/gabsocial/pages/modal_page.js
+++ b/app/javascript/gabsocial/pages/modal_page.js
@@ -1,8 +1,10 @@
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import Block from '../components/block'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
export default class ModalPage extends PureComponent {
@@ -23,11 +25,11 @@ export default class ModalPage extends PureComponent {
,
-
,
- ]}
showBackBtn
+ layout={[
+ WhoToFollowPanel,
+ LinkFooter,
+ ]}
>
diff --git a/app/javascript/gabsocial/pages/news_page.js b/app/javascript/gabsocial/pages/news_page.js
index 48e6d7c8..632adaad 100644
--- a/app/javascript/gabsocial/pages/news_page.js
+++ b/app/javascript/gabsocial/pages/news_page.js
@@ -1,10 +1,12 @@
import PageTitle from '../features/ui/util/page_title'
import DefaultLayout from '../layouts/default_layout'
-import ProgressPanel from '../components/panel/progress_panel'
-import VerifiedAccountsPanel from '../components/panel/verified_accounts_panel'
-import ShopPanel from '../components/panel/shop_panel'
-import SignupPanel from '../components/panel/sign_up_panel'
-import LinkFooter from '../components/link_footer'
+import {
+ LinkFooter,
+ ProgressPanel,
+ ShopPanel,
+ SignUpPanel,
+ VerifiedAccountsPanel,
+} from '../features/ui/util/async_components'
export default class NewsPage extends PureComponent {
@@ -23,11 +25,11 @@ export default class NewsPage extends PureComponent {
noComposeButton
showBackBtn
layout={[
-
,
-
,
-
,
-
,
-
,
+ SignUpPanel,
+ ProgressPanel,
+ VerifiedAccountsPanel,
+ ShopPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/notifications_page.js b/app/javascript/gabsocial/pages/notifications_page.js
index aaccb439..307fbc77 100644
--- a/app/javascript/gabsocial/pages/notifications_page.js
+++ b/app/javascript/gabsocial/pages/notifications_page.js
@@ -4,11 +4,13 @@ import { setFilter } from '../actions/notifications'
import { me } from '../initial_state'
import { NOTIFICATION_FILTERS } from '../constants'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import NotificationFilterPanel from '../components/panel/notification_filter_panel'
-import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ NotificationFilterPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
notifications: { id: 'tabs_bar.notifications', defaultMessage: 'Notifications' },
@@ -88,10 +90,10 @@ class NotificationsPage extends PureComponent {
title={intl.formatMessage(messages.notifications)}
page='notifications'
layout={[
-
,
-
,
-
,
-
,
+ NotificationFilterPanel,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
tabs={tabs}
>
diff --git a/app/javascript/gabsocial/pages/pro_page.js b/app/javascript/gabsocial/pages/pro_page.js
index 3eb19162..621b6e68 100644
--- a/app/javascript/gabsocial/pages/pro_page.js
+++ b/app/javascript/gabsocial/pages/pro_page.js
@@ -1,9 +1,11 @@
import { defineMessages, injectIntl } from 'react-intl'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import VerifiedAccountsPanel from '../components/panel/verified_accounts_panel'
-import ProgressPanel from '../components/panel/progress_panel'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ VerifiedAccountsPanel,
+ ProgressPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
title: { 'id': 'column.pro', 'defaultMessage': 'Pro feed' },
@@ -28,9 +30,9 @@ class ProPage extends PureComponent {
title={title}
page='pro'
layout={[
-
,
-
,
-
,
+ ProgressPanel,
+ VerifiedAccountsPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/search_page.js b/app/javascript/gabsocial/pages/search_page.js
index c5d01573..801acc2e 100644
--- a/app/javascript/gabsocial/pages/search_page.js
+++ b/app/javascript/gabsocial/pages/search_page.js
@@ -2,12 +2,14 @@ import { defineMessages, injectIntl } from 'react-intl'
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
import Responsive from '../features/ui/util/responsive_component'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import SearchFilterPanel from '../components/panel/search_filter_panel'
-import TrendsPanel from '../components/panel/trends_panel'
-import SignupPanel from '../components/panel/sign_up_panel'
import Search from '../components/search'
import Layout from '../layouts/layout'
+import {
+ LinkFooter,
+ TrendsPanel,
+ SearchFilterPanel,
+ SignUpPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
search: { id: 'search', defaultMessage: 'Search' },
@@ -65,10 +67,10 @@ class SearchPage extends PureComponent {
tabs={tabs}
page={`search.${qos}`}
layout={[
-
,
-
,
-
,
-
,
+ SignUpPanel,
+ SearchFilterPanel,
+ TrendsPanel,
+ LinkFooter,
]}
>
diff --git a/app/javascript/gabsocial/pages/shortcuts_page.js b/app/javascript/gabsocial/pages/shortcuts_page.js
index 9fa58ee5..cf96330c 100644
--- a/app/javascript/gabsocial/pages/shortcuts_page.js
+++ b/app/javascript/gabsocial/pages/shortcuts_page.js
@@ -2,10 +2,12 @@ import { defineMessages, injectIntl } from 'react-intl'
import { openModal } from '../actions/modal'
import { MODAL_EDIT_SHORTCUTS } from '../constants'
import PageTitle from '../features/ui/util/page_title'
-import LinkFooter from '../components/link_footer'
-import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
-import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
+import {
+ LinkFooter,
+ TrendsPanel,
+ WhoToFollowPanel,
+} from '../features/ui/util/async_components'
const messages = defineMessages({
shortcuts: { id: 'shortcuts', defaultMessage: 'Shortcuts' },
@@ -47,9 +49,9 @@ class ShortcutsPage extends PureComponent {
},
]}
layout={[
-
,
-
,
-
,
+ TrendsPanel,
+ WhoToFollowPanel,
+ LinkFooter,
]}
>