Skip to content

Commit

Permalink
chore: Give non-destructive instructions when Keycard migration failed (
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmotta authored Dec 18, 2024
1 parent 3191c70 commit 398c30e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/status_im/contexts/keycard/migrate/fail/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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])}}]]))
3 changes: 3 additions & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,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 hasn’t 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",
Expand Down Expand Up @@ -2427,6 +2429,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",
Expand Down

0 comments on commit 398c30e

Please sign in to comment.