Don't load TabsBar async

v1.x.x
Alex Gleason 2021-09-18 20:09:29 -05:00
rodzic aeddec2892
commit 08cdef59c9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 8 usunięć

Wyświetl plik

@ -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}

Wyświetl plik

@ -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');
}