woocommerce/plugins/woocommerce-admin/client/analytics/report/revenue/index.js

37 lines
768 B
JavaScript

/** @format */
/**
* External dependencies
*/
import { Component, Fragment } from '@wordpress/element';
import PropTypes from 'prop-types';
/**
* WooCommerce dependencies
*/
import { ReportFilters } from '@woocommerce/components';
/**
* Internal dependencies
*/
import RevenueReportChart from './chart';
import RevenueReportTable from './table';
export default class RevenueReport extends Component {
render() {
const { path, query } = this.props;
return (
<Fragment>
<ReportFilters query={ query } path={ path } />
<RevenueReportChart query={ query } path={ path } />
<RevenueReportTable query={ query } />
</Fragment>
);
}
}
RevenueReport.propTypes = {
path: PropTypes.string.isRequired,
query: PropTypes.object.isRequired,
};