From 20c1d057b122a1c4b6ba0deadb0a69be07de5ded Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Mon, 25 Oct 2021 15:39:45 -0500 Subject: [PATCH] type fixes --- .../service_list/service_list.stories.tsx | 2 +- .../routing/templates/settings_template.stories.tsx | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx index 85b085bac2d69..628ef4617417c 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx @@ -11,7 +11,7 @@ import { MemoryRouter } from 'react-router-dom'; import { CoreStart } from '../../../../../../../../src/core/public'; import { createKibanaReactContext } from '../../../../../../../../src/plugins/kibana_react/public'; import { ServiceHealthStatus } from '../../../../../common/service_health_status'; -import type { ApmPluginContextValue } from '../../../../context/apm_plugin'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context'; import { ServiceList } from './'; import { items } from './__fixtures__/service_api_mock_data'; diff --git a/x-pack/plugins/apm/public/components/routing/templates/settings_template.stories.tsx b/x-pack/plugins/apm/public/components/routing/templates/settings_template.stories.tsx index 9deb6e75d8d6c..969cf360fdb1b 100644 --- a/x-pack/plugins/apm/public/components/routing/templates/settings_template.stories.tsx +++ b/x-pack/plugins/apm/public/components/routing/templates/settings_template.stories.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; -import { CoreStart, DocLinksStart, HttpStart } from 'kibana/public'; +import type { Meta, Story } from '@storybook/react'; +import type { CoreStart, DocLinksStart, HttpStart } from 'kibana/public'; import React, { ComponentProps } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { createKibanaReactContext } from '../../../../../../../src/plugins/kibana_react/public'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; import { SettingsTemplate } from './settings_template'; @@ -31,7 +32,7 @@ const coreMock = { get: () => `/basepath`, }, get: async () => ({}), - } as HttpStart, + }, docLinks: { DOC_LINK_VERSION: '0', ELASTIC_WEBSITE_URL: 'https://www.elastic.co/', @@ -52,7 +53,9 @@ const stories: Meta = { return ( - +