mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
chore: refactor Alert-related components (#31858)
This commit is contained in:
committed by
GitHub
parent
5fe6ef268e
commit
6eb87e04c0
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user