diff --git a/src/features/chats/components/chat-message.tsx b/src/features/chats/components/chat-message.tsx
index 373be7f12..9b65eabf9 100644
--- a/src/features/chats/components/chat-message.tsx
+++ b/src/features/chats/components/chat-message.tsx
@@ -10,7 +10,6 @@ import { initReport, ReportableEntities } from 'soapbox/actions/reports';
import DropdownMenu from 'soapbox/components/dropdown-menu';
import { HStack, Icon, Stack, Text } from 'soapbox/components/ui';
import emojify from 'soapbox/features/emoji';
-import Bundle from 'soapbox/features/ui/components/bundle';
import { MediaGallery } from 'soapbox/features/ui/util/async-components';
import { useAppDispatch, useAppSelector, useFeatures } from 'soapbox/hooks';
import { ChatKeys, IChat, useChatActions } from 'soapbox/queries/chats';
@@ -22,7 +21,6 @@ import ChatMessageReaction from './chat-message-reaction';
import ChatMessageReactionWrapper from './chat-message-reaction-wrapper/chat-message-reaction-wrapper';
import type { Menu as IMenu } from 'soapbox/components/dropdown-menu';
-import type { IMediaGallery } from 'soapbox/components/media-gallery';
import type { ChatMessage as ChatMessageEntity } from 'soapbox/types/entities';
const messages = defineMessages({
@@ -111,19 +109,15 @@ const ChatMessage = (props: IChatMessage) => {
if (!chatMessage.media_attachments.size) return null;
return (
-
- {(Component: React.FC) => (
-
- )}
-
+
);
};
diff --git a/src/features/compose/components/compose-form.tsx b/src/features/compose/components/compose-form.tsx
index 849f6cf80..97bb5d958 100644
--- a/src/features/compose/components/compose-form.tsx
+++ b/src/features/compose/components/compose-form.tsx
@@ -17,14 +17,12 @@ import AutosuggestInput, { AutoSuggestion } from 'soapbox/components/autosuggest
import AutosuggestTextarea from 'soapbox/components/autosuggest-textarea';
import { Button, HStack, Stack } from 'soapbox/components/ui';
import EmojiPickerDropdown from 'soapbox/features/emoji/containers/emoji-picker-dropdown-container';
-import Bundle from 'soapbox/features/ui/components/bundle';
-import { ComposeEditor } from 'soapbox/features/ui/util/async-components';
+import { ComposeEditor, ScheduleForm } from 'soapbox/features/ui/util/async-components';
import { useAppDispatch, useAppSelector, useCompose, useDraggedFiles, useFeatures, useInstance, usePrevious } from 'soapbox/hooks';
import { isMobile } from 'soapbox/is-mobile';
import QuotedStatusContainer from '../containers/quoted-status-container';
import ReplyIndicatorContainer from '../containers/reply-indicator-container';
-import ScheduleFormContainer from '../containers/schedule-form-container';
import UploadButtonContainer from '../containers/upload-button-container';
import WarningContainer from '../containers/warning-container';
import { $createEmojiNode } from '../editor/nodes/emoji-node';
@@ -260,7 +258,7 @@ const ComposeForm =
({ id, shouldCondense, autoFocus, clickab
ref={spoilerTextRef}
/>
-
+
);
@@ -313,23 +311,19 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab
{!shouldCondense && !event && !group && }
-
- {(Component: any) => (
-
- )}
-
+
{composeModifiers}
diff --git a/src/features/compose/components/schedule-form.tsx b/src/features/compose/components/schedule-form.tsx
index 074d1b234..aab6b8864 100644
--- a/src/features/compose/components/schedule-form.tsx
+++ b/src/features/compose/components/schedule-form.tsx
@@ -5,7 +5,6 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { setSchedule, removeSchedule } from 'soapbox/actions/compose';
import IconButton from 'soapbox/components/icon-button';
import { HStack, Stack, Text } from 'soapbox/components/ui';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { DatePicker } from 'soapbox/features/ui/util/async-components';
import { useAppDispatch, useCompose } from 'soapbox/hooks';
@@ -55,22 +54,20 @@ const ScheduleForm: React.FC = ({ composeId }) => {
-
- {Component => ()}
-
+
= (props) => (
-
- {Component => }
-
-);
-
-export default ScheduleFormContainer;
diff --git a/src/features/report/components/status-check-box.tsx b/src/features/report/components/status-check-box.tsx
index d8d9c0eb4..b8cb48015 100644
--- a/src/features/report/components/status-check-box.tsx
+++ b/src/features/report/components/status-check-box.tsx
@@ -6,7 +6,6 @@ import StatusContent from 'soapbox/components/status-content';
import { Toggle } from 'soapbox/components/ui';
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
-import Bundle from '../../ui/components/bundle';
import { MediaGallery, Video, Audio } from '../../ui/util/async-components';
interface IStatusCheckBox {
@@ -35,22 +34,16 @@ const StatusCheckBox: React.FC = ({ id, disabled }) => {
if (video) {
media = (
-
- {(Component: any) => (
-
- )}
-
+
);
}
} else if (status.media_attachments.get(0)?.type === 'audio') {
@@ -58,24 +51,20 @@ const StatusCheckBox: React.FC = ({ id, disabled }) => {
if (audio) {
media = (
-
- {(Component: any) => (
-
- )}
-
+
);
}
} else {
media = (
-
- {(Component: any) => }
-
+
);
}
}
diff --git a/src/features/ui/components/bundle.tsx b/src/features/ui/components/bundle.tsx
deleted file mode 100644
index dc84acf69..000000000
--- a/src/features/ui/components/bundle.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import React, { Suspense } from 'react';
-
-export interface IBundle> {
- fetchComponent: React.LazyExoticComponent;
- loading?: React.ComponentType;
- error?: React.ComponentType<{ onRetry: (props?: IBundle) => void }>;
- children: (component: React.LazyExoticComponent) => React.ReactNode;
- renderDelay?: number;
- onFetch?: () => void;
- onFetchSuccess?: () => void;
- onFetchFail?: (error: any) => void;
-}
-
-/** Fetches and renders an async component. */
-function Bundle>({ fetchComponent, loading: Loading, children }: IBundle) {
- return (
- : null}>
- {children(fetchComponent)}
-
- );
-}
-
-export default Bundle;
diff --git a/src/features/ui/components/modal-loading.tsx b/src/features/ui/components/modal-loading.tsx
index e3effb060..fbafa5071 100644
--- a/src/features/ui/components/modal-loading.tsx
+++ b/src/features/ui/components/modal-loading.tsx
@@ -2,8 +2,6 @@ import React from 'react';
import { Spinner } from 'soapbox/components/ui';
-// Keep the markup in sync with
-// (make sure they have the same dimensions)
const ModalLoading = () => (
diff --git a/src/features/ui/components/modal-root.tsx b/src/features/ui/components/modal-root.tsx
index 5dc8bd6ca..6a3f91fb9 100644
--- a/src/features/ui/components/modal-root.tsx
+++ b/src/features/ui/components/modal-root.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { Suspense } from 'react';
import Base from 'soapbox/components/modal-root';
import {
@@ -38,8 +38,6 @@ import {
VideoModal,
} from 'soapbox/features/ui/util/async-components';
-import BundleContainer from '../containers/bundle-container';
-
import ModalLoading from './modal-loading';
/* eslint sort-keys: "error" */
@@ -102,7 +100,7 @@ export default class ModalRoot extends React.PureComponent
{
}
}
- renderLoading = (modalId: string) => () => {
+ renderLoading = (modalId: string) => {
return !['MEDIA', 'VIDEO', 'BOOST', 'CONFIRM', 'ACTIONS'].includes(modalId) ? : null;
};
@@ -113,14 +111,14 @@ export default class ModalRoot extends React.PureComponent {
render() {
const { type, props } = this.props;
- const visible = !!type;
+ const Component = type ? MODAL_COMPONENTS[type] : null;
return (
- {visible && (
-
- {(SpecificComponent) => }
-
+ {(Component && !!type) && (
+
+
+
)}
);
diff --git a/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx b/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx
index f4afa2932..1ea54a8f4 100644
--- a/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx
+++ b/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx
@@ -24,12 +24,13 @@ import { checkEventComposeContent } from 'soapbox/components/modal-root';
import { Button, Form, FormGroup, HStack, Icon, IconButton, Input, Modal, Spinner, Stack, Tabs, Text, Toggle } from 'soapbox/components/ui';
import AccountContainer from 'soapbox/containers/account-container';
import { isCurrentOrFutureDate } from 'soapbox/features/compose/components/schedule-form';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { ComposeEditor, DatePicker } from 'soapbox/features/ui/util/async-components';
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
import UploadButton from './upload-button';
+import type { LexicalEditor } from 'lexical';
+
const messages = defineMessages({
eventNamePlaceholder: { id: 'compose_event.fields.name_placeholder', defaultMessage: 'Name' },
eventDescriptionPlaceholder: { id: 'compose_event.fields.description_placeholder', defaultMessage: 'Description' },
@@ -94,7 +95,7 @@ const ComposeEventModal: React.FC = ({ onClose }) => {
const intl = useIntl();
const dispatch = useAppDispatch();
- const editorStateRef = useRef(null);
+ const editorRef = useRef(null);
const [tab, setTab] = useState<'edit' | 'pending'>('edit');
@@ -167,7 +168,7 @@ const ComposeEventModal: React.FC = ({ onClose }) => {
};
const handleSubmit = () => {
- dispatch(changeEditEventDescription(editorStateRef.current!));
+ dispatch(changeEditEventDescription(editorRef.current!));
dispatch(submitEvent());
};
@@ -235,18 +236,14 @@ const ComposeEventModal: React.FC = ({ onClose }) => {
}
>
-
- {(Component: any) => (
-
- )}
-
+
}
@@ -260,18 +257,16 @@ const ComposeEventModal: React.FC = ({ onClose }) => {
}
>
-
- {Component => ()}
-
+
= ({ onClose }) => {
}
>
-
- {Component => ()}
-
+
)}
{!id && (
diff --git a/src/features/ui/components/modals/edit-announcement-modal.tsx b/src/features/ui/components/modals/edit-announcement-modal.tsx
index bfb07d356..23c074d49 100644
--- a/src/features/ui/components/modals/edit-announcement-modal.tsx
+++ b/src/features/ui/components/modals/edit-announcement-modal.tsx
@@ -4,7 +4,6 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
import { changeAnnouncementAllDay, changeAnnouncementContent, changeAnnouncementEndTime, changeAnnouncementStartTime, handleCreateAnnouncement } from 'soapbox/actions/admin';
import { closeModal } from 'soapbox/actions/modals';
import { Form, FormGroup, HStack, Modal, Stack, Text, Textarea, Toggle } from 'soapbox/components/ui';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { DatePicker } from 'soapbox/features/ui/util/async-components';
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
@@ -67,34 +66,30 @@ const EditAnnouncementModal: React.FC = ({ onClose }) =>
}
>
-
- {Component => ()}
-
+
}
>
-
- {Component => ()}
-
+
= ({ account, limit })
if (pinned.isEmpty()) {
return (
-
- {Component => }
-
+
);
}
diff --git a/src/features/ui/components/profile-field.tsx b/src/features/ui/components/profile-field.tsx
index 5a0915fe6..540d29806 100644
--- a/src/features/ui/components/profile-field.tsx
+++ b/src/features/ui/components/profile-field.tsx
@@ -4,7 +4,6 @@ import { defineMessages, useIntl, FormatDateOptions } from 'react-intl';
import Markup from 'soapbox/components/markup';
import { HStack, Icon } from 'soapbox/components/ui';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { CryptoAddress } from 'soapbox/features/ui/util/async-components';
import type { Account } from 'soapbox/schemas';
@@ -35,14 +34,10 @@ const ProfileField: React.FC = ({ field }) => {
if (isTicker(field.name)) {
return (
-
- {Component => (
-
- )}
-
+
);
}
diff --git a/src/features/ui/containers/bundle-container.tsx b/src/features/ui/containers/bundle-container.tsx
deleted file mode 100644
index b94b1bb02..000000000
--- a/src/features/ui/containers/bundle-container.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Bundle from '../components/bundle';
-
-export default Bundle;
diff --git a/src/features/ui/index.tsx b/src/features/ui/index.tsx
index 39db6599b..5445f20f2 100644
--- a/src/features/ui/index.tsx
+++ b/src/features/ui/index.tsx
@@ -41,7 +41,6 @@ import { isStandalone } from 'soapbox/utils/state';
import BackgroundShapes from './components/background-shapes';
import FloatingActionButton from './components/floating-action-button';
import Navbar from './components/navbar';
-import BundleContainer from './containers/bundle-container';
import {
Status,
CommunityTimeline,
@@ -501,29 +500,18 @@ const UI: React.FC = ({ children }) => {
)}
{me && (
-
- {Component => }
-
+
)}
{me && features.chats && (
-
- {Component => (
-
-
-
- )}
-
+
+
+
)}
+
-
-
- {Component => }
-
-
-
- {Component => }
-
+
+
diff --git a/src/features/ui/util/react-router-helpers.tsx b/src/features/ui/util/react-router-helpers.tsx
index e202af4a4..ba1895ae4 100644
--- a/src/features/ui/util/react-router-helpers.tsx
+++ b/src/features/ui/util/react-router-helpers.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { Suspense } from 'react';
import { Redirect, Route, useHistory, RouteProps, RouteComponentProps, match as MatchType } from 'react-router-dom';
import { Layout } from 'soapbox/components/ui';
@@ -7,7 +7,6 @@ import { useOwnAccount, useSettings } from 'soapbox/hooks';
import ColumnForbidden from '../components/column-forbidden';
import ColumnLoading from '../components/column-loading';
import ColumnsArea from '../components/columns-area';
-import BundleContainer from '../containers/bundle-container';
type PageProps = {
params?: MatchType['params'];
@@ -28,7 +27,7 @@ interface IWrappedRoute extends RouteProps {
}
const WrappedRoute: React.FC = ({
- component,
+ component: Component,
page: Page,
content,
componentParams = {},
@@ -47,32 +46,24 @@ const WrappedRoute: React.FC = ({
const renderComponent = ({ match }: RouteComponentProps) => {
if (Page) {
return (
-
- {Component =>
- (
-
-
- {content}
-
-
- )
- }
-
+
+
+
+ {content}
+
+
+
);
}
return (
-
- {Component =>
- (
-
-
- {content}
-
-
- )
- }
-
+
+
+
+ {content}
+
+
+
);
};
diff --git a/src/pages/admin-page.tsx b/src/pages/admin-page.tsx
index 9574ecfc5..9d8c21073 100644
--- a/src/pages/admin-page.tsx
+++ b/src/pages/admin-page.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { Layout } from 'soapbox/components/ui';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
LatestAccountsPanel,
} from 'soapbox/features/ui/util/async-components';
@@ -20,10 +19,7 @@ const AdminPage: React.FC = ({ children }) => {
-
- {Component => }
-
-
+
>
diff --git a/src/pages/default-page.tsx b/src/pages/default-page.tsx
index 2fc6145aa..dc273d956 100644
--- a/src/pages/default-page.tsx
+++ b/src/pages/default-page.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
WhoToFollowPanel,
TrendsPanel,
@@ -26,27 +25,19 @@ const DefaultPage: React.FC = ({ children }) => {
{children}
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
{me && features.suggestions && (
-
- {Component => }
-
+
)}
diff --git a/src/pages/event-page.tsx b/src/pages/event-page.tsx
index a8fd7bb4b..dfc184064 100644
--- a/src/pages/event-page.tsx
+++ b/src/pages/event-page.tsx
@@ -4,7 +4,6 @@ import { useHistory } from 'react-router-dom';
import { Column, Layout, Tabs } from 'soapbox/components/ui';
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder-status';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
EventHeader,
CtaBanner,
@@ -65,9 +64,7 @@ const EventPage: React.FC = ({ params, children }) => {
-
- {Component => }
-
+
{status && showTabs && (
@@ -78,27 +75,19 @@ const EventPage: React.FC
= ({ params, children }) => {
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
{features.suggestions && (
-
- {Component => }
-
+
)}
diff --git a/src/pages/events-page.tsx b/src/pages/events-page.tsx
index f05cd8d49..eb31ecca9 100644
--- a/src/pages/events-page.tsx
+++ b/src/pages/events-page.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import { Layout } from 'soapbox/components/ui';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
WhoToFollowPanel,
TrendsPanel,
@@ -25,18 +24,12 @@ const EventsPage: React.FC = ({ children }) => {
-
- {Component => }
-
+
{features.trends && (
-
- {Component => }
-
+
)}
{features.suggestions && (
-
- {Component => }
-
+
)}
diff --git a/src/pages/group-page.tsx b/src/pages/group-page.tsx
index fac6ca6a4..ab7bf6469 100644
--- a/src/pages/group-page.tsx
+++ b/src/pages/group-page.tsx
@@ -6,7 +6,6 @@ import { useGroup, useGroupMembershipRequests } from 'soapbox/api/hooks';
import { Column, Icon, Layout, Stack, Text, Tabs } from 'soapbox/components/ui';
import GroupHeader from 'soapbox/features/group/components/group-header';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
CtaBanner,
GroupMediaPanel,
@@ -166,25 +165,17 @@ const GroupPage: React.FC = ({ params, children }) => {
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
-
- {Component => }
-
-
- {Component => }
-
-
+
+
+
>
);
diff --git a/src/pages/groups-page.tsx b/src/pages/groups-page.tsx
index 7964e7798..ed3f62501 100644
--- a/src/pages/groups-page.tsx
+++ b/src/pages/groups-page.tsx
@@ -3,7 +3,6 @@ import { Route, Routes } from 'react-router-dom-v5-compat';
import { Column, Layout } from 'soapbox/components/ui';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { MyGroupsPanel, NewGroupPanel, SuggestedGroupsPanel } from 'soapbox/features/ui/util/async-components';
interface IGroupsPage {
@@ -22,26 +21,10 @@ const GroupsPage: React.FC = ({ children }) => (
-
- {Component => }
-
+
-
- {Component => }
-
- )}
- />
-
- {Component => }
-
- )}
- />
+ } />
+ } />
diff --git a/src/pages/groups-pending-page.tsx b/src/pages/groups-pending-page.tsx
index 66c3b0cb3..f692cf7bf 100644
--- a/src/pages/groups-pending-page.tsx
+++ b/src/pages/groups-pending-page.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import { Layout } from 'soapbox/components/ui';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { NewGroupPanel, SuggestedGroupsPanel } from 'soapbox/features/ui/util/async-components';
interface IGroupsPage {
@@ -17,15 +16,9 @@ const GroupsPendingPage: React.FC = ({ children }) => (
-
- {Component => }
-
-
-
- {Component => }
-
-
-
+
+
+
>
);
diff --git a/src/pages/home-page.tsx b/src/pages/home-page.tsx
index 081b846aa..c74e55b15 100644
--- a/src/pages/home-page.tsx
+++ b/src/pages/home-page.tsx
@@ -20,7 +20,6 @@ import { useAppSelector, useOwnAccount, useFeatures, useSoapboxConfig, useDragge
import { Avatar, Card, CardBody, HStack, Layout } from '../components/ui';
import ComposeForm from '../features/compose/components/compose-form';
-import BundleContainer from '../features/ui/containers/bundle-container';
interface IHomePage {
children: React.ReactNode;
@@ -83,52 +82,34 @@ const HomePage: React.FC = ({ children }) => {
{children}
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{me && features.announcements && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
{(hasPatron && me) && (
-
- {Component => }
-
+
)}
{(hasCrypto && cryptoLimit > 0 && me) && (
-
- {Component => }
-
+
)}
-
- {Component => }
-
+
{features.birthdays && (
-
- {Component => }
-
+
)}
{me && features.suggestions && (
-
- {Component => }
-
+
)}
-
+
>
);
diff --git a/src/pages/landing-page.tsx b/src/pages/landing-page.tsx
index d76644cb4..c54f881e9 100644
--- a/src/pages/landing-page.tsx
+++ b/src/pages/landing-page.tsx
@@ -9,7 +9,6 @@ import {
import { useAppSelector, useFeatures } from 'soapbox/hooks';
import { Layout } from '../components/ui';
-import BundleContainer from '../features/ui/containers/bundle-container';
interface ILandingPage {
children: React.ReactNode;
@@ -25,22 +24,16 @@ const LandingPage: React.FC = ({ children }) => {
{children}
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
diff --git a/src/pages/manage-groups-page.tsx b/src/pages/manage-groups-page.tsx
index 44106bac2..1214259a8 100644
--- a/src/pages/manage-groups-page.tsx
+++ b/src/pages/manage-groups-page.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import { Layout } from 'soapbox/components/ui';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import { MyGroupsPanel, NewGroupPanel } from 'soapbox/features/ui/util/async-components';
interface IGroupsPage {
@@ -17,13 +16,8 @@ const ManageGroupsPage: React.FC = ({ children }) => (
-
- {Component => }
-
-
- {Component => }
-
-
+
+
>
diff --git a/src/pages/profile-page.tsx b/src/pages/profile-page.tsx
index e25c7a720..ea5e55856 100644
--- a/src/pages/profile-page.tsx
+++ b/src/pages/profile-page.tsx
@@ -6,7 +6,6 @@ import { useAccountLookup } from 'soapbox/api/hooks';
import { Column, Layout, Tabs } from 'soapbox/components/ui';
import Header from 'soapbox/features/account/components/header';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
WhoToFollowPanel,
ProfileInfoPanel,
@@ -92,10 +91,7 @@ const ProfilePage: React.FC = ({ params, children }) => {
-
-
- {Component => }
-
+
{account && showTabs && (
@@ -106,40 +102,26 @@ const ProfilePage: React.FC
= ({ params, children }) => {
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.notes && account && account?.id !== me && (
-
- {Component => }
-
+
)}
-
- {Component => }
-
+
{(account && account.fields.length > 0) && (
-
- {Component => }
-
+
)}
{(features.accountEndorsements && account && isLocal(account)) ? (
-
- {Component => }
-
+
) : me && features.suggestions && (
-
- {Component => }
-
+
)}
diff --git a/src/pages/remote-instance-page.tsx b/src/pages/remote-instance-page.tsx
index b53844213..0f15624a8 100644
--- a/src/pages/remote-instance-page.tsx
+++ b/src/pages/remote-instance-page.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
PromoPanel,
InstanceInfoPanel,
@@ -33,18 +32,12 @@ const RemoteInstancePage: React.FC = ({ children, params })
-
- {Component => }
-
-
- {Component => }
-
+
+
{(disclosed || account?.admin) && (
-
- {Component => }
-
+
)}
-
+
>
);
diff --git a/src/pages/search-page.tsx b/src/pages/search-page.tsx
index 7b2041f26..338076d42 100644
--- a/src/pages/search-page.tsx
+++ b/src/pages/search-page.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
-import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
import {
WhoToFollowPanel,
TrendsPanel,
@@ -27,38 +26,28 @@ const SearchPage: React.FC = ({ children }) => {
{children}
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
{me && features.suggestions && (
-
- {Component => }
-
+
)}
{features.groups && (
-
- {Component => }
-
+
)}
-
+
>
);
diff --git a/src/pages/status-page.tsx b/src/pages/status-page.tsx
index 62f316e50..cc184e9de 100644
--- a/src/pages/status-page.tsx
+++ b/src/pages/status-page.tsx
@@ -10,7 +10,6 @@ import {
import { useAppSelector, useFeatures } from 'soapbox/hooks';
import { Layout } from '../components/ui';
-import BundleContainer from '../features/ui/containers/bundle-container';
interface IStatusPage {
children: React.ReactNode;
@@ -26,29 +25,21 @@ const StatusPage: React.FC = ({ children }) => {
{children}
{!me && (
-
- {Component => }
-
+
)}
{!me && (
-
- {Component => }
-
+
)}
{features.trends && (
-
- {Component => }
-
+
)}
{me && features.suggestions && (
-
- {Component => }
-
+
)}
-
+
>
);