Skip to content

Commit

Permalink
Convert FormattedMessage to i18n.translate.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Aug 24, 2021
1 parent 165879a commit ff97803
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -47,10 +46,9 @@ const SnapshotRestoreAppLink: React.FunctionComponent = () => {

return (
<EuiButton href={snapshotRestoreUrl} data-test-subj="snapshotRestoreLink">
<FormattedMessage
id="xpack.upgradeAssistant.overview.snapshotRestoreLink"
defaultMessage="Create snapshot"
/>
{i18n.translate('xpack.upgradeAssistant.overview.snapshotRestoreLink', {
defaultMessage: 'Create snapshot',
})}
</EuiButton>
);
};
Expand Down

0 comments on commit ff97803

Please sign in to comment.