41 lines
804 B
JavaScript
41 lines
804 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 { filters, advancedFilters } from './config';
|
|
import CustomersReportTable from './table';
|
|
|
|
export default class CustomersReport extends Component {
|
|
render() {
|
|
const { query, path } = this.props;
|
|
|
|
return (
|
|
<Fragment>
|
|
<ReportFilters
|
|
query={ query }
|
|
path={ path }
|
|
filters={ filters }
|
|
showDatePicker={ false }
|
|
advancedFilters={ advancedFilters }
|
|
/>
|
|
<CustomersReportTable query={ query } />
|
|
</Fragment>
|
|
);
|
|
}
|
|
}
|
|
|
|
CustomersReport.propTypes = {
|
|
query: PropTypes.object.isRequired,
|
|
};
|