Don't load TabsBar async

merge-requests/772/head
Alex Gleason 3 years ago
parent aeddec2892
commit 08cdef59c9
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -22,6 +22,7 @@ import { fetchFollowRequests } from '../../actions/accounts';
import { fetchScheduledStatuses } from '../../actions/scheduled_statuses';
import { WrappedRoute } from './util/react_router_helpers';
import BundleContainer from './containers/bundle_container';
import TabsBar from './components/tabs_bar';
import ProfilePage from 'soapbox/pages/profile_page';
// import GroupsPage from 'soapbox/pages/groups_page';
// import GroupPage from 'soapbox/pages/group_page';
@ -100,7 +101,6 @@ import {
FederationRestrictions,
Aliases,
FollowRecommendations,
TabsBar,
SidebarMenu,
UploadArea,
NotificationsContainer,
@ -651,9 +651,7 @@ class UI extends React.PureComponent {
return (
<HotKeys keyMap={keyMap} handlers={handlers} ref={this.setHotkeysRef} attach={window} focused>
<div className={classnames} ref={this.setRef} style={style}>
<BundleContainer fetchComponent={TabsBar}>
{Component => <Component />}
</BundleContainer>
<TabsBar />
<SwitchingColumnsArea location={location} onLayoutChange={this.handleLayoutChange} soapbox={soapbox}>
{children}

@ -338,10 +338,6 @@ export function AdminNav() {
return import(/* webpackChunkName: "features/admin" */'../../admin/components/admin_nav');
}
export function TabsBar() {
return import(/* webpackChunkName: "features/ui" */'../../ui/components/tabs_bar');
}
export function SidebarMenu() {
return import(/* webpackChunkName: "features/ui" */'../../../components/sidebar_menu');
}

Loading…
Cancel
Save