From 946c7c4d7f31221fc4c1fd65ece2dda86df35021 Mon Sep 17 00:00:00 2001 From: Devon A Thomson Date: Tue, 12 Jan 2021 10:38:51 -0500 Subject: [PATCH] type fix --- .../public/application/listing/dashboard_listing.test.tsx | 2 ++ .../public/application/listing/dashboard_unsaved_listing.tsx | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/dashboard/public/application/listing/dashboard_listing.test.tsx b/src/plugins/dashboard/public/application/listing/dashboard_listing.test.tsx index 8172be46e9f3a..7f3b3c42b195c 100644 --- a/src/plugins/dashboard/public/application/listing/dashboard_listing.test.tsx +++ b/src/plugins/dashboard/public/application/listing/dashboard_listing.test.tsx @@ -40,6 +40,7 @@ import { chromeServiceMock, coreMock } from '../../../../../core/public/mocks'; import { I18nProvider } from '@kbn/i18n/react'; import React from 'react'; import { UrlForwardingStart } from '../../../../url_forwarding/public'; +import { DashboardPanelStorage } from '../lib'; function makeDefaultServices(): DashboardAppServices { const core = coreMock.createStart(); @@ -63,6 +64,7 @@ function makeDefaultServices(): DashboardAppServices { savedObjects: savedObjectsPluginMock.createStartContract(), embeddable: embeddablePluginMock.createInstance().doStart(), dashboardCapabilities: {} as DashboardCapabilities, + dashboardPanelStorage: {} as DashboardPanelStorage, initializerContext: {} as PluginInitializerContext, chrome: chromeServiceMock.createStartContract(), navigation: {} as NavigationPublicPluginStart, diff --git a/src/plugins/dashboard/public/application/listing/dashboard_unsaved_listing.tsx b/src/plugins/dashboard/public/application/listing/dashboard_unsaved_listing.tsx index 7931bc2c3de18..7278d0c8594c2 100644 --- a/src/plugins/dashboard/public/application/listing/dashboard_unsaved_listing.tsx +++ b/src/plugins/dashboard/public/application/listing/dashboard_unsaved_listing.tsx @@ -19,19 +19,16 @@ import { EuiButtonEmpty, - EuiButtonIconPropsForButton, EuiCallOut, EuiFlexGroup, EuiFlexItem, EuiIcon, - EuiListGroup, - EuiListGroupItemProps, EuiSpacer, EuiTitle, } from '@elastic/eui'; import React, { useCallback, useEffect, useState } from 'react'; import useMount from 'react-use/lib/useMount'; -import { createDashboardEditUrl, DashboardConstants, DashboardSavedObject } from '../..'; +import { DashboardSavedObject } from '../..'; import { dashboardUnsavedListingStrings, getNewDashboardTitle } from '../../dashboard_strings'; import { useKibana } from '../../services/kibana_react'; import { DASHBOARD_PANELS_UNSAVED_ID } from '../lib/dashboard_panel_storage';