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

34 lines
803 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 Header from 'header';
import StorePerformance from './store-performance';
2018-08-08 23:52:21 +00:00
import TopSellingProducts from './top-selling-products';
2018-10-24 22:40:59 +00:00
import { ReportFilters } from '@woocommerce/components';
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', 'wc-admin' ) ] } />
2018-10-24 22:40:59 +00:00
<ReportFilters query={ query } path={ path } />
<StorePerformance />
2018-08-02 23:10:55 +00:00
<div className="woocommerce-dashboard__columns">
2018-08-06 22:34:47 +00:00
<div>
2018-08-08 23:52:21 +00:00
<TopSellingProducts />
2018-08-02 23:10:55 +00:00
</div>
</div>
</Fragment>
);
}
}