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

37 lines
754 B
JavaScript
Raw Normal View History

/** @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 } />
<RevenueReportTable query={ query } />
</Fragment>
);
}
}
RevenueReport.propTypes = {
path: PropTypes.string.isRequired,
query: PropTypes.object.isRequired,
};