From 016b979537bf008f138c0257db0055db82574d45 Mon Sep 17 00:00:00 2001 From: 1Copenut Date: Tue, 29 Nov 2022 12:23:21 -0600 Subject: [PATCH] Refactored FormattedMessage to raw i18n so modal title would render as H1. --- .../revert_to_basic/revert_to_basic.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/license_management/public/application/sections/license_dashboard/revert_to_basic/revert_to_basic.js b/x-pack/plugins/license_management/public/application/sections/license_dashboard/revert_to_basic/revert_to_basic.js index 6831bf4daaba..548b63fa49d9 100644 --- a/x-pack/plugins/license_management/public/application/sections/license_dashboard/revert_to_basic/revert_to_basic.js +++ b/x-pack/plugins/license_management/public/application/sections/license_dashboard/revert_to_basic/revert_to_basic.js @@ -10,6 +10,7 @@ import React from 'react'; import { EuiFlexItem, EuiCard, EuiButton, EuiLink, EuiConfirmModal, EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { EXTERNAL_LINKS } from '../../../../../common/constants'; +import { i18n } from '@kbn/i18n'; export class RevertToBasic extends React.PureComponent { cancel = () => { @@ -29,14 +30,10 @@ export class RevertToBasic extends React.PureComponent { } return ( - - - } + title={i18n.translate( + 'xpack.licenseMgmt.licenseDashboard.revertToBasic.confirmModalTitle', + { defaultMessage: 'Confirm Revert to Basic License' } + )} onCancel={cancelStartBasicLicense} onConfirm={() => startBasicLicense(licenseType, true)} cancelButtonText={