Skip to content

Commit

Permalink
wallet only logout confirmation description
Browse files Browse the repository at this point in the history
  • Loading branch information
naezith authored and takenagain committed Jan 27, 2025
1 parent 96f93e7 commit 87659e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
"swapFeeDetailsNone": "None",
"swapFeeDetailsPaidFromReceivedVolume": "Paid from received volume",
"logoutPopupTitle": "Confirm log out?",
"logoutPopupDescriptionWalletOnly": "Are you sure you want to logout?",
"logoutPopupDescription": "Are you sure you want to logout? Your opened orders will no longer be available to match with other users and any trades in progress may not be completed",
"transactionDetailsTitle": "Transaction completed",
"customSeedWarningText": "Custom seed phrases are generally less secure and easier to crack than a generated BIP39 compliant seed phrase. To confirm you understand and are aware of the risk, type \"I\u00A0Understand\" in the box below.",
Expand Down
1 change: 1 addition & 0 deletions lib/generated/codegen_loader.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ abstract class LocaleKeys {
'swapFeeDetailsPaidFromReceivedVolume';
static const logoutPopupTitle = 'logoutPopupTitle';
static const logoutPopupDescription = 'logoutPopupDescription';
static const logoutPopupDescriptionWalletOnly = 'logoutPopupDescriptionWalletOnly';
static const transactionDetailsTitle = 'transactionDetailsTitle';
static const customSeedWarningText = 'customSeedWarningText';
static const customSeedIUnderstand = 'customSeedIUnderstand';
Expand Down
5 changes: 4 additions & 1 deletion lib/shared/widgets/logout_popup.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:web_dex/app_config/app_config.dart';
import 'package:web_dex/bloc/auth_bloc/auth_bloc.dart';
import 'package:web_dex/bloc/auth_bloc/auth_bloc_event.dart';
import 'package:web_dex/blocs/blocs.dart';
Expand Down Expand Up @@ -35,7 +36,9 @@ class LogOutPopup extends StatelessWidget {
const SizedBox(height: 12),
if (currentWalletBloc.wallet?.config.type == WalletType.iguana)
SelectableText(
LocaleKeys.logoutPopupDescription.tr(),
kIsWalletOnly
? LocaleKeys.logoutPopupDescriptionWalletOnly.tr()
: LocaleKeys.logoutPopupDescription.tr(),
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
Expand Down

0 comments on commit 87659e0

Please sign in to comment.