From ff9780313c68d16fd8e950585256e372d6912d13 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 23 Aug 2021 19:37:34 -0700 Subject: [PATCH] Convert FormattedMessage to i18n.translate. --- .../components/overview/backup_step/backup_step.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx b/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx index 6baa0a3e3537c..006d8ed3d38ae 100644 --- a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx +++ b/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx @@ -6,7 +6,6 @@ */ import React, { useState, useEffect } from 'react'; -import { FormattedMessage } from '@kbn/i18n/react'; import { i18n } from '@kbn/i18n'; import { EuiText, EuiButton, EuiSpacer } from '@elastic/eui'; import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; @@ -47,10 +46,9 @@ const SnapshotRestoreAppLink: React.FunctionComponent = () => { return ( - + {i18n.translate('xpack.upgradeAssistant.overview.snapshotRestoreLink', { + defaultMessage: 'Create snapshot', + })} ); };