mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: Add fallback spinner to authentication lazy-loaded pages
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
// @ts-nocheck
|
||||
import * as React from 'react';
|
||||
import * as Loadable from 'react-loadable';
|
||||
|
||||
const Loader = (config) =>
|
||||
Loadable({
|
||||
loading: (props) => {
|
||||
if (props.error) {
|
||||
/* tslint:disable */
|
||||
console.error(`======= DefaultLoader Error =======`);
|
||||
console.error(props.error);
|
||||
console.error(`======= DefaultLoader Error =======`);
|
||||
/* tslint:enable */
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
delay: 250,
|
||||
...config
|
||||
});
|
||||
|
||||
export default Loader;
|
||||
Reference in New Issue
Block a user