From a0aa5cf387c5d05b269e0eaf30f824ba00538c4a Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 20 Oct 2022 15:25:11 +0530 Subject: [PATCH] Change copy for recovery key verification --- lib/ui/account/verify_recovery_page.dart | 15 +++------------ .../components/notification_warning_widget.dart | 1 + lib/ui/status_bar_widget.dart | 4 ++-- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/lib/ui/account/verify_recovery_page.dart b/lib/ui/account/verify_recovery_page.dart index ebe059b50..e0b9aff29 100644 --- a/lib/ui/account/verify_recovery_page.dart +++ b/lib/ui/account/verify_recovery_page.dart @@ -148,16 +148,14 @@ class _VerifyRecoveryPageState extends State { SizedBox( width: double.infinity, child: Text( - 'Verify recovery key', + 'Confirm recovery key', style: enteTheme.textTheme.h3Bold, textAlign: TextAlign.left, ), ), const SizedBox(height: 18), Text( - "If you forget your password, your recovery key is the " - "only way to recover your photos.\n\nPlease verify that " - "you have safely backed up your 24 word recovery key by re-entering it.", + "Your recovery key is the only way to recover your photos if you forget your password. You can find your recovery key in Settings > Account.\n\nPlease enter your recovery key here to verify that you have saved it correctly.", style: enteTheme.textTheme.small .copyWith(color: enteTheme.colorScheme.textMuted), ), @@ -187,12 +185,6 @@ class _VerifyRecoveryPageState extends State { }, ), const SizedBox(height: 12), - Text( - "If you saved the recovery key from older app versions, you might have a 64 character recovery code instead of 24 words. You can enter that too.", - style: enteTheme.textTheme.mini - .copyWith(color: enteTheme.colorScheme.textMuted), - ), - const SizedBox(height: 8), Expanded( child: Container( alignment: Alignment.bottomCenter, @@ -204,8 +196,7 @@ class _VerifyRecoveryPageState extends State { children: [ GradientButton( onTap: _verifyRecoveryKey, - text: "Verify", - iconData: Icons.shield_outlined, + text: "Confirm", ), const SizedBox(height: 8), ], diff --git a/lib/ui/components/notification_warning_widget.dart b/lib/ui/components/notification_warning_widget.dart index 7763e233e..50b7e40fe 100644 --- a/lib/ui/components/notification_warning_widget.dart +++ b/lib/ui/components/notification_warning_widget.dart @@ -35,6 +35,7 @@ class NotificationWarningWidget extends StatelessWidget { child: Padding( padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10), child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Icon( warningIcon, diff --git a/lib/ui/status_bar_widget.dart b/lib/ui/status_bar_widget.dart index bb517dd47..69826f4e1 100644 --- a/lib/ui/status_bar_widget.dart +++ b/lib/ui/status_bar_widget.dart @@ -100,9 +100,9 @@ class _StatusBarWidgetState extends State { : const SizedBox.shrink(), UserRemoteFlagService.instance.shouldShowRecoveryVerification() ? NotificationWarningWidget( - warningIcon: Icons.gpp_maybe, + warningIcon: Icons.error_outline, actionIcon: Icons.arrow_forward, - text: "Please ensure you have your 24 word recovery key", + text: "Confirm your recovery key", onTap: () async => { await routeToPage( context,