Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Mar 4, 2021
1 parent 8af1904 commit c78a9e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ComingSoonPrompt: React.FunctionComponent = () => {
<FormattedMessage
id="xpack.upgradeAssistant.emptyPrompt.upgradeAssistantDescription"
defaultMessage="The Upgrade Assistant identifies deprecated settings in your cluster and helps you
resolve issues before you upgrade. Check back here when it's time to upgrade to Elasticsearch {nextMajor}."
resolve issues before you upgrade. Check back here when it's time to upgrade your Elastic Stack to {nextMajor}."
values={{ nextMajor: `${nextMajor}.0` }}
/>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,9 +38,7 @@ export const PageContent: React.FunctionComponent = () => {
</EuiPageHeaderSection>
</EuiPageHeader>

<AppContext.Consumer>
{({ http }) => <UpgradeAssistantTabs http={http} />}
</AppContext.Consumer>
<UpgradeAssistantTabs http={http} />
</>
);
};

0 comments on commit c78a9e3

Please sign in to comment.