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

33 lines
717 B
JavaScript
Raw Normal View History

/** @format */
/**
* External dependencies
*/
import { Component, Fragment } from '@wordpress/element';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
import { ReportFilters } from '@woocommerce/components';
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 } />
<RevenueReportTable query={ query } />
</Fragment>
);
}
}
RevenueReport.propTypes = {
path: PropTypes.string.isRequired,
query: PropTypes.object.isRequired,
};