sforkowany z mirror/soapbox
Don't load TabsBar async
rodzic
aeddec2892
commit
08cdef59c9
|
@ -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');
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue