2018-04-17 23:51:48 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2020-04-29 18:01:27 +00:00
|
|
|
import { Component, Suspense, lazy } from '@wordpress/element';
|
2020-05-28 08:51:40 +00:00
|
|
|
import { Spinner } from '@woocommerce/components';
|
2018-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
/**
|
2018-05-03 18:23:17 +00:00
|
|
|
* Internal dependencies
|
2018-04-17 23:51:48 +00:00
|
|
|
*/
|
2018-08-02 23:10:55 +00:00
|
|
|
import './style.scss';
|
2020-04-29 18:01:27 +00:00
|
|
|
|
|
|
|
const CustomizableDashboard = lazy( () =>
|
|
|
|
import( /* webpackChunkName: "customizable-dashboard" */ './customizable' )
|
|
|
|
);
|
|
|
|
|
2019-05-28 14:45:52 +00:00
|
|
|
class Dashboard extends Component {
|
2019-07-05 08:15:49 +00:00
|
|
|
render() {
|
2020-09-14 23:44:46 +00:00
|
|
|
const { path, query } = this.props;
|
2019-05-07 19:25:51 +00:00
|
|
|
|
2021-06-29 23:47:38 +00:00
|
|
|
return (
|
|
|
|
<Suspense fallback={ <Spinner /> }>
|
|
|
|
<CustomizableDashboard query={ query } path={ path } />
|
|
|
|
</Suspense>
|
|
|
|
);
|
2019-04-22 13:23:37 +00:00
|
|
|
}
|
2018-04-17 23:51:48 +00:00
|
|
|
}
|
2019-05-28 14:45:52 +00:00
|
|
|
|
2021-03-24 21:29:37 +00:00
|
|
|
export default Dashboard;
|