From c78a9e3fa48a507fbc655e282573e748d9d73a24 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Thu, 4 Mar 2021 08:58:49 -0500 Subject: [PATCH] address review feedback --- .../public/application/components/coming_soon_prompt.tsx | 2 +- .../public/application/components/page_content.tsx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/coming_soon_prompt.tsx b/x-pack/plugins/upgrade_assistant/public/application/components/coming_soon_prompt.tsx index 2e5e8b2cb11e2..d8771b5b485dd 100644 --- a/x-pack/plugins/upgrade_assistant/public/application/components/coming_soon_prompt.tsx +++ b/x-pack/plugins/upgrade_assistant/public/application/components/coming_soon_prompt.tsx @@ -35,7 +35,7 @@ export const ComingSoonPrompt: React.FunctionComponent = () => {

diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/page_content.tsx b/x-pack/plugins/upgrade_assistant/public/application/components/page_content.tsx index b358ff29b7b2b..4497a7603d8d9 100644 --- a/x-pack/plugins/upgrade_assistant/public/application/components/page_content.tsx +++ b/x-pack/plugins/upgrade_assistant/public/application/components/page_content.tsx @@ -9,12 +9,12 @@ import React from 'react'; import { EuiPageHeader, EuiPageHeaderSection, EuiTitle } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n/react'; -import { AppContext, useAppContext } from '../app_context'; +import { useAppContext } from '../app_context'; import { ComingSoonPrompt } from './coming_soon_prompt'; import { UpgradeAssistantTabs } from './tabs'; export const PageContent: React.FunctionComponent = () => { - const { kibanaVersionInfo, isReadOnlyMode } = useAppContext(); + const { kibanaVersionInfo, isReadOnlyMode, http } = useAppContext(); const { nextMajor } = kibanaVersionInfo; // Read-only mode will be enabled up until the last minor before the next major release @@ -38,9 +38,7 @@ export const PageContent: React.FunctionComponent = () => { - - {({ http }) => } - + ); };