This commit is contained in:
Paul Sealock 2019-11-28 12:12:33 +13:00 committed by GitHub
parent d035bc8397
commit 49060372aa
1 changed files with 9 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import { withDispatch } from '@wordpress/data';
/** /**
* WooCommerce dependencies * WooCommerce dependencies
*/ */
import { H, ReportFilters } from '@woocommerce/components'; import { H } from '@woocommerce/components';
/** /**
* Internal dependencies * Internal dependencies
@ -26,6 +26,7 @@ import TaskList from './task-list';
import { getTasks } from './task-list/tasks'; import { getTasks } from './task-list/tasks';
import { isOnboardingEnabled } from 'dashboard/utils'; import { isOnboardingEnabled } from 'dashboard/utils';
import { getCurrentDates, getDateParamsFromQuery, isoDateFormat } from 'lib/date'; import { getCurrentDates, getDateParamsFromQuery, isoDateFormat } from 'lib/date';
import ReportFilters from 'analytics/components/report-filters';
class CustomizableDashboard extends Component { class CustomizableDashboard extends Component {
constructor( props ) { constructor( props ) {
@ -226,7 +227,13 @@ class CustomizableDashboard extends Component {
! taskListHidden && ! taskListHidden &&
taskListCompleted && <TaskList query={ query } inline /> } taskListCompleted && <TaskList query={ query } inline /> }
<ReportFilters query={ query } path={ path } dateQuery={ dateQuery } isoDateFormat={ isoDateFormat } /> <ReportFilters
report="dashboard"
query={ query }
path={ path }
dateQuery={ dateQuery }
isoDateFormat={ isoDateFormat }
/>
{ sections.map( ( section, index ) => { { sections.map( ( section, index ) => {
if ( section.isVisible ) { if ( section.isVisible ) {
return ( return (