2018-04-17 23:51:48 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2018-05-10 18:35:55 +00:00
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import { Component, Fragment } from '@wordpress/element';
|
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';
|
2018-12-22 00:24:26 +00:00
|
|
|
import DashboardCharts from './dashboard-charts';
|
2019-01-08 07:20:01 +00:00
|
|
|
import Header from 'header';
|
|
|
|
import Leaderboards from './leaderboards';
|
2018-10-24 22:40:59 +00:00
|
|
|
import { ReportFilters } from '@woocommerce/components';
|
2019-01-08 07:20:01 +00:00
|
|
|
import StorePerformance from './store-performance';
|
2018-04-17 23:51:48 +00:00
|
|
|
|
2018-05-18 17:31:08 +00:00
|
|
|
export default class Dashboard extends Component {
|
2018-04-17 23:51:48 +00:00
|
|
|
render() {
|
2018-10-24 22:40:59 +00:00
|
|
|
const { query, path } = this.props;
|
2018-04-17 23:51:48 +00:00
|
|
|
return (
|
2018-05-10 18:35:55 +00:00
|
|
|
<Fragment>
|
2019-03-13 17:14:02 +00:00
|
|
|
<Header sections={ [ __( 'Dashboard', 'woocommerce-admin' ) ] } />
|
2018-10-24 22:40:59 +00:00
|
|
|
<ReportFilters query={ query } path={ path } />
|
2019-01-17 14:08:59 +00:00
|
|
|
<StorePerformance query={ query } />
|
2019-01-08 07:20:01 +00:00
|
|
|
<Leaderboards query={ query } />
|
2018-12-22 00:24:26 +00:00
|
|
|
<DashboardCharts query={ query } path={ path } />
|
2018-05-10 18:35:55 +00:00
|
|
|
</Fragment>
|
2018-04-17 23:51:48 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|