Skip to content

Commit c78a9e3

Browse files
address review feedback
1 parent 8af1904 commit c78a9e3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

x-pack/plugins/upgrade_assistant/public/application/components/coming_soon_prompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ComingSoonPrompt: React.FunctionComponent = () => {
3535
<FormattedMessage
3636
id="xpack.upgradeAssistant.emptyPrompt.upgradeAssistantDescription"
3737
defaultMessage="The Upgrade Assistant identifies deprecated settings in your cluster and helps you
38-
resolve issues before you upgrade. Check back here when it's time to upgrade to Elasticsearch {nextMajor}."
38+
resolve issues before you upgrade. Check back here when it's time to upgrade your Elastic Stack to {nextMajor}."
3939
values={{ nextMajor: `${nextMajor}.0` }}
4040
/>
4141
</p>

x-pack/plugins/upgrade_assistant/public/application/components/page_content.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import React from 'react';
99
import { EuiPageHeader, EuiPageHeaderSection, EuiTitle } from '@elastic/eui';
1010
import { FormattedMessage } from '@kbn/i18n/react';
1111

12-
import { AppContext, useAppContext } from '../app_context';
12+
import { useAppContext } from '../app_context';
1313
import { ComingSoonPrompt } from './coming_soon_prompt';
1414
import { UpgradeAssistantTabs } from './tabs';
1515

1616
export const PageContent: React.FunctionComponent = () => {
17-
const { kibanaVersionInfo, isReadOnlyMode } = useAppContext();
17+
const { kibanaVersionInfo, isReadOnlyMode, http } = useAppContext();
1818
const { nextMajor } = kibanaVersionInfo;
1919

2020
// 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 = () => {
3838
</EuiPageHeaderSection>
3939
</EuiPageHeader>
4040

41-
<AppContext.Consumer>
42-
{({ http }) => <UpgradeAssistantTabs http={http} />}
43-
</AppContext.Consumer>
41+
<UpgradeAssistantTabs http={http} />
4442
</>
4543
);
4644
};

0 commit comments

Comments
 (0)