From 53b104f68ca425ebd509376c3e405adf4263e0bd Mon Sep 17 00:00:00 2001 From: Phillip Burch Date: Thu, 5 Nov 2020 09:20:30 -0600 Subject: [PATCH] Fix typecheck --- .../pages/metrics/inventory_view/components/waffle/node.tsx | 1 - .../inventory_view/components/waffle/node_context_menu.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx index 47a85e7cf26c8..f2d9da960df81 100644 --- a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx +++ b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx @@ -10,7 +10,6 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { first } from 'lodash'; -import { ConditionalToolTip } from './conditional_tooltip'; import { euiStyled } from '../../../../../../../observability/public'; import { InfraWaffleMapBounds, diff --git a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx index d1364296b990a..91c6ad801000a 100644 --- a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx +++ b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx @@ -37,7 +37,7 @@ interface Props { isPopoverOpen: boolean; closePopover: () => void; popoverPosition: EuiPopoverProps['anchorPosition']; - openNewOverlay(): void; + openNewOverlay?: () => void; } export const NodeContextMenu: React.FC = withTheme( @@ -162,7 +162,7 @@ export const NodeContextMenu: React.FC = withTheme }; const openNewOverlayMenuItem: SectionLinkProps = { - label: i18n.translate('xpack.infra.nodeContextMenu.createAlertLink', { + label: i18n.translate('xpack.infra.nodeContextMenu.openNewOverlay', { defaultMessage: '**** [NEW] Overlay ***', }), style: { color: theme?.eui.euiLinkColor || '#006BB4', fontWeight: 500, padding: 0 },