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

37 lines
837 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 'layout/header';
import StorePerformance from './store-performance';
2018-08-08 23:52:21 +00:00
import TopSellingProducts from './top-selling-products';
import Chart from 'components/chart';
2018-08-06 22:34:47 +00:00
import Card from 'components/card';
export default class Dashboard extends Component {
render() {
return (
<Fragment>
<Header sections={ [ __( 'Dashboard', 'wc-admin' ) ] } />
<StorePerformance />
<Chart />
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>
2018-08-06 22:34:47 +00:00
<div>
2018-08-06 22:56:24 +00:00
<Card title={ __( 'Column 2/1 Orders', 'wc-admin' ) } />
2018-08-02 23:10:55 +00:00
</div>
</div>
</Fragment>
);
}
}