From 72e1c5e990557dd47546407c54305de2a6456837 Mon Sep 17 00:00:00 2001 From: Paul Tavares Date: Tue, 14 Apr 2020 17:34:37 -0400 Subject: [PATCH] Fix type --- .../public/applications/endpoint/view/hosts/details/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/details/index.tsx b/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/details/index.tsx index 4f8e1ab5908ff..8bfb65933f5f7 100644 --- a/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/details/index.tsx +++ b/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/details/index.tsx @@ -23,7 +23,7 @@ import { uiQueryParams, detailsData, detailsError, showView } from '../../../sto import { HostDetails } from './host_details'; import { PolicyResponse } from './policy_response'; import { HostMetadata } from '../../../../../../common/types'; -import { FlyoutSubHeader } from './components/flyout_sub_header'; +import { FlyoutSubHeader, FlyoutSubHeaderProps } from './components/flyout_sub_header'; export const HostDetailsFlyout = memo(() => { const history = useHistory(); @@ -94,7 +94,7 @@ const PolicyResponseFlyoutPanel = memo<{ }>(({ hostMeta }) => { const history = useHistory(); const { show, ...queryParams } = useHostListSelector(uiQueryParams); - const backButtonProp = useMemo(() => { + const backButtonProp = useMemo((): FlyoutSubHeaderProps['backButton'] => { const detailsUri = urlFromQueryParams({ ...queryParams, selected_host: hostMeta.host.id,