File tree Expand file tree Collapse file tree 9 files changed +29
-13
lines changed Expand file tree Collapse file tree 9 files changed +29
-13
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,9 @@ class Backoffice extends Component {
183
183
user : response . data ,
184
184
} ) ;
185
185
}
186
- } catch ( error ) { }
186
+ } catch ( error ) {
187
+ //
188
+ }
187
189
} ;
188
190
189
191
async componentDidMount ( ) {
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import moment from 'moment' ;
2
+ const moment = ( ) => import ( 'moment' ) ;
3
3
import Lang from 'lang.js' ;
4
4
5
5
import { LOCALE } from './config' ;
Original file line number Diff line number Diff line change 1
- export { default as Home } from './Home' ;
1
+ import loadable from '@loadable/component' ;
2
+
3
+ export const Home = loadable ( ( ) => import ( './Home' ) ) ;
Original file line number Diff line number Diff line change 1
- export { default as Master } from './Master' ;
1
+ import loadable from '@loadable/component' ;
2
+
3
+ export const Master = loadable ( ( ) => import ( './Master' ) ) ;
Original file line number Diff line number Diff line change 1
- export { default as Header } from './Header' ;
2
- export { default as Sidebar } from './Sidebar' ;
1
+ import loadable from '@loadable/component' ;
2
+
3
+ export const Header = loadable ( ( ) => import ( './Header' ) ) ;
4
+ export const Sidebar = loadable ( ( ) => import ( './Sidebar' ) ) ;
Original file line number Diff line number Diff line change 1
- export { default as List } from './List' ;
2
- export { default as Create } from './Create' ;
3
- export { default as Edit } from './Edit' ;
1
+ import loadable from '@loadable/component' ;
2
+
3
+ export const List = loadable ( ( ) => import ( './List' ) ) ;
4
+ export const Create = loadable ( ( ) => import ( './Create' ) ) ;
5
+ export const Edit = loadable ( ( ) => import ( './Edit' ) ) ;
Original file line number Diff line number Diff line change
1
+ import loadable from '@loadable/component' ;
2
+
1
3
export { default as SignIn } from './SignIn' ;
2
- export { default as PasswordRequest } from './passwords/Request' ;
3
- export { default as PasswordReset } from './passwords/Reset' ;
4
+ export const PasswordRequest = loadable ( ( ) => import ( './passwords/Request' ) ) ;
5
+ export const PasswordReset = loadable ( ( ) => import ( './passwords/Reset' ) ) ;
Original file line number Diff line number Diff line change 1
- export { default as NotFound } from './NotFound' ;
1
+ import loadable from '@loadable/component' ;
2
+
3
+ export const NotFound = loadable ( ( ) => import ( './NotFound' ) ) ;
Original file line number Diff line number Diff line change
1
+ import loadable from '@loadable/component' ;
2
+
1
3
export { default as Auth } from './Auth' ;
2
- export { default as Error } from './Error' ;
4
+ export const Error = loadable ( ( ) => import ( './Error' ) ) ;
You can’t perform that action at this time.
0 commit comments