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-06-28 13:52:45 +00:00
|
|
|
import Header from 'layout/header';
|
2018-06-29 18:27:18 +00:00
|
|
|
import StorePerformance from './store-performance';
|
2018-07-11 15:23:16 +00:00
|
|
|
import Chart from 'components/chart';
|
2018-08-06 22:34:47 +00:00
|
|
|
import Card from 'components/card';
|
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() {
|
|
|
|
return (
|
2018-05-10 18:35:55 +00:00
|
|
|
<Fragment>
|
2018-07-10 12:48:06 +00:00
|
|
|
<Header sections={ [ __( 'Dashboard', 'wc-admin' ) ] } />
|
2018-06-29 18:27:18 +00:00
|
|
|
<StorePerformance />
|
2018-07-11 15:23:16 +00:00
|
|
|
<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-06 22:56:24 +00:00
|
|
|
<Card title={ __( 'Column 1/1', 'wc-admin' ) } />
|
|
|
|
<Card title={ __( '1/2 Top Selling Products', 'wc-admin' ) } />
|
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' ) } />
|
|
|
|
<Card title={ __( 'Column 2/2', 'wc-admin' ) } />
|
2018-08-02 23:10:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-10 18:35:55 +00:00
|
|
|
</Fragment>
|
2018-04-17 23:51:48 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|