chore: Give non-destructive instructions when Keycard migration failed (#21844)

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>
This commit is contained in:
Shivek Khurana 2024-12-20 13:35:11 +01:00 committed by GitHub
parent 0f036ca9c4
commit a85ca5bd3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -13,7 +13,7 @@
customization-color (rf/sub [:profile/customization-color])]
[:<>
[quo/page-top
{:title (i18n/label :t/failed-to-migrate-key-pair)
{:title (i18n/label :t/something-didnt-go-as-planned)
:description :context-tag
:context-tag {:full-name profile-name
:profile-picture profile-picture
@ -24,9 +24,9 @@
{:resize-mode :contain
:source (resources/get-image :keycard-migration-failed)}]]
[quo/divider-label (i18n/label :t/what-you-can-do)]
[quo/markdown-list {:description (i18n/label :t/log-out-remove-profile)}]
[quo/markdown-list {:description (i18n/label :t/recover-status-profile)}]
[quo/markdown-list {:description (i18n/label :t/keycard-migration-failed-instruction-1)}]
[quo/markdown-list {:description (i18n/label :t/keycard-migration-failed-instruction-2)}]
[quo/bottom-actions
{:actions :one-action
:button-one-label (i18n/label :t/log-out-remove)
:button-one-label (i18n/label :t/logout)
:button-one-props {:on-press #(rf/dispatch [:profile/logout])}}]]))

View File

@ -1387,6 +1387,8 @@
"keycard-is-frozen-reset": "Reset with PUK",
"keycard-is-frozen-title": "Keycard is frozen",
"keycard-locked": "Keycard is locked",
"keycard-migration-failed-instruction-1": "Try logging out and logging back in with Keycard; everything might work fine.",
"keycard-migration-failed-instruction-2": "If the key pair hasnt migrated to Keycard, remove your profile, and recover it using your recovery phrase.",
"keycard-not-empty": "Keycard is not empty",
"keycard-onboarding-finishing-header": "Finishing up",
"keycard-onboarding-intro-header": "Store your keys on Keycard",
@ -2428,6 +2430,7 @@
"slippage-should-be-more-than-0": "Slippage should be more than 0",
"slow": "Slow",
"something-about-you": "Something about you",
"something-didnt-go-as-planned": "Something didn't go as planned",
"something-went-wrong": "Something went wrong",
"something-went-wrong-please-try-again-later": "Something went wrong. Modify swap parameters or try again later.",
"soon": "Soon",