Skip to content

Commit

Permalink
chore: Add explanation about account removal from keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Oct 8, 2024
1 parent 65ae561 commit 9607c1a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@
"tokenDetailMenuEarn": "Earn",
"localDataMigrationMessage": "Update your current application.\nPlease wait...",
"nftNotOwnerInfo": "You are not the owner of this NFT",
"removeKeychainDetail": "You are about to retire the account %1 from your keychain.\nYou will no longer have access to the funds or associated tokens.\nRefer to your keychain history to access information related to this account.",
"accountsListWarningRemoveAccount": "Click on the trash icon to remove the account from your keychain",
"accountsListWarningRemoveAccountConfirmRequired": "confirmation required",
"removeKeychainDetail": "You are about to remove the account %1 from your keychain.\nYou will no longer have access to the funds or associated tokens.\nRefer to your keychain history to access information related to this account.",
"removeKeychainAction": "Remove",
"removeKeychainLater": "You will be able to find your account if you recreate it later with the same name.",
"removeKeychainAtLeast1": "You must keep at least one account in your keychain.",
Expand Down
2 changes: 2 additions & 0 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@
"tokenDetailMenuEarn": "Gagner",
"localDataMigrationMessage": "Mise à jour de votre application en cours.\nVeuillez patienter...",
"nftNotOwnerInfo": "Vous n'êtes pas propriétaire de ce NFT",
"accountsListWarningRemoveAccount": "Cliquez sur l'icône de la corbeille pour supprimer le compte de votre trousseau",
"accountsListWarningRemoveAccountConfirmRequired": "confirmation requise",
"removeKeychainDetail": "Vous vous apprêtez à retirer de votre porte-clés le compte %1.\nVous n'aurez plus accès ni aux fonds, ni aux tokens associés.\nRéférez vous à l'historique de votre porte-clés afin de pouvoir accéder aux informations relatives à ce compte.",
"removeKeychainAction": "Retirer le compte",
"removeKeychainLater": "Vous pourrez retrouver votre compte si vous le récréez plus tard avec le même nom.",
Expand Down
27 changes: 27 additions & 0 deletions lib/ui/views/main/components/main_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,33 @@ class MainAppBar extends ConsumerWidget implements PreferredSizeWidget {
),
),
),
Padding(
padding: const EdgeInsets.only(top: 10),
child: RichText(
text: TextSpan(
children: [
const WidgetSpan(
child: Icon(Icons.info, size: 16),
),
TextSpan(
text:
' ${localizations.accountsListWarningRemoveAccount}',
style: ArchethicThemeStyles
.textStyleSize12W100Primary,
),
TextSpan(
text:
' (${localizations.accountsListWarningRemoveAccountConfirmRequired})',
style: ArchethicThemeStyles
.textStyleSize12W100Primary
.copyWith(
fontStyle: FontStyle.italic,
),
),
],
),
),
),
const AccountsList(),
],
),
Expand Down

0 comments on commit 9607c1a

Please sign in to comment.