woocommerce/plugins/woocommerce-admin/client/dashboard/index.js

32 lines
839 B
JavaScript
Raw Normal View History

/** @format */
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Component, Fragment } from '@wordpress/element';
/**
* Internal dependencies
*/
2018-08-02 23:10:55 +00:00
import './style.scss';
import DashboardCharts from './dashboard-charts';
import Header from 'header';
import Leaderboards from './leaderboards';
2018-10-24 22:40:59 +00:00
import { ReportFilters } from '@woocommerce/components';
import StorePerformance from './store-performance';
export default class Dashboard extends Component {
render() {
2018-10-24 22:40:59 +00:00
const { query, path } = this.props;
return (
<Fragment>
<Header sections={ [ __( 'Dashboard', 'woocommerce-admin' ) ] } />
2018-10-24 22:40:59 +00:00
<ReportFilters query={ query } path={ path } />
<StorePerformance query={ query } />
<Leaderboards query={ query } />
<DashboardCharts query={ query } path={ path } />
</Fragment>
);
}
}