File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
x-pack/plugins/infra/public/alerting/common/components Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
1616 EuiCallOut ,
1717 EuiAccordion ,
1818 EuiCodeBlock ,
19+ EuiText ,
1920} from '@elastic/eui' ;
2021import { FormattedMessage } from '@kbn/i18n/react' ;
2122import { i18n } from '@kbn/i18n' ;
@@ -271,13 +272,18 @@ export const AlertPreview: React.FC<Props> = (props) => {
271272 < EuiSpacer size = { 's' } />
272273 < EuiAccordion
273274 id = "alertErrorDetailsAccordion"
274- buttonContent = { i18n . translate (
275- 'xpack.infra.metrics.alertFlyout.errorDetails' ,
276- {
277- defaultMessage : 'Details' ,
278- }
279- ) }
275+ buttonContent = {
276+ < >
277+ < EuiText size = "s" >
278+ < FormattedMessage
279+ id = "xpack.infra.metrics.alertFlyout.errorDetails"
280+ defaultMessage = "Details"
281+ />
282+ </ EuiText >
283+ </ >
284+ }
280285 >
286+ < EuiSpacer size = { 's' } />
281287 < EuiCodeBlock > { previewError . body . message } </ EuiCodeBlock >
282288 </ EuiAccordion >
283289 </ >
You can’t perform that action at this time.
0 commit comments