1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

[FLASK] Align update error state with Figma (#19547)

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
Frederik Bolding 2023-06-09 16:50:51 +02:00 committed by GitHub
parent 3e1fb2a4be
commit 1a8a263cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -3370,9 +3370,6 @@
"reportLastRunTooltip": {
"message": "The date and time of when the last AML/CFT report was run"
},
"requestFailed": {
"message": "Request failed"
},
"requestFlaggedAsMaliciousFallbackCopyReason": {
"message": "The security provider has not shared additional details"
},

View File

@ -127,7 +127,16 @@ export default function SnapUpdate({
</Box>
)}
{hasError && (
<InstallError error={requestState.error} title={t('requestFailed')} />
<InstallError
iconName={IconName.Warning}
error={requestState.error}
title={t('snapUpdateErrorTitle')}
description={t('snapUpdateErrorDescription', [
<Text as={ValidTag.Span} key="1" fontWeight={FontWeight.Medium}>
{snapName}
</Text>,
])}
/>
)}
{!hasError && !isLoading && (
<>