From 49060372aaf8dca3e09f3da23e5ee1066598dea7 Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Thu, 28 Nov 2019 12:12:33 +1300 Subject: [PATCH] Use report filters with tracking (https://github.com/woocommerce/woocommerce-admin/pull/3309) --- .../client/dashboard/customizable.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-admin/client/dashboard/customizable.js b/plugins/woocommerce-admin/client/dashboard/customizable.js index d7c20b7536f..8ffa62c25f1 100644 --- a/plugins/woocommerce-admin/client/dashboard/customizable.js +++ b/plugins/woocommerce-admin/client/dashboard/customizable.js @@ -12,7 +12,7 @@ import { withDispatch } from '@wordpress/data'; /** * WooCommerce dependencies */ -import { H, ReportFilters } from '@woocommerce/components'; +import { H } from '@woocommerce/components'; /** * Internal dependencies @@ -26,6 +26,7 @@ import TaskList from './task-list'; import { getTasks } from './task-list/tasks'; import { isOnboardingEnabled } from 'dashboard/utils'; import { getCurrentDates, getDateParamsFromQuery, isoDateFormat } from 'lib/date'; +import ReportFilters from 'analytics/components/report-filters'; class CustomizableDashboard extends Component { constructor( props ) { @@ -226,7 +227,13 @@ class CustomizableDashboard extends Component { ! taskListHidden && taskListCompleted && } - + { sections.map( ( section, index ) => { if ( section.isVisible ) { return (