chore: refactor Alert-related components (#31858)

This commit is contained in:
Maxime Beauchemin
2025-01-24 08:39:09 -08:00
committed by GitHub
parent 5fe6ef268e
commit 6eb87e04c0
51 changed files with 590 additions and 753 deletions

View File

@@ -88,19 +88,12 @@ function TimeoutErrorMessage({
</>
);
const copyText = t('%(subtitle)s\nThis may be triggered by:\n %(issue)s', {
subtitle,
issue: extra.issue_codes.map(issueCode => issueCode.message).join('\n'),
});
return (
<ErrorAlert
title={t('Timeout error')}
subtitle={subtitle}
level={level}
source={source}
copyText={copyText}
body={body}
errorType={t('Timeout error')}
message={subtitle}
type={level}
descriptionDetails={body}
/>
);
}