Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"walletCreationHdBip39SeedError": "Your input seed phrase is not BIP39 compliant, and can not be used in multi-address wallet mode. Please try again, or disable multi-address wallet mode and select 'Allow custom seed' to proceed.",
"walletPageNoSuchAsset": "No assets match search criteria",
"swap": "Swap",
"dexAddress": "DEX Address",
"swapAddress": "Swap Address",
"fiatBalance": "Fiat balance",
"yourBalance": "Your balance",
"all": "All",
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/codegen_loader.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ abstract class LocaleKeys {
static const walletCreationHdBip39SeedError = 'walletCreationHdBip39SeedError';
static const walletPageNoSuchAsset = 'walletPageNoSuchAsset';
static const swap = 'swap';
static const dexAddress = 'dexAddress';
static const swapAddress = 'swapAddress';
static const fiatBalance = 'fiatBalance';
static const yourBalance = 'yourBalance';
static const all = 'all';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ class SwapAddressTag extends StatelessWidget {
borderRadius: BorderRadius.circular(16.0),
),
child: Text(
LocaleKeys.dexAddress.tr(),
LocaleKeys.swapAddress.tr(),
style: TextStyle(fontSize: isMobile ? 9 : 12),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:komodo_defi_types/komodo_defi_types.dart';
import 'package:komodo_ui/komodo_ui.dart';
import 'package:komodo_ui_kit/komodo_ui_kit.dart';
import 'package:web_dex/bloc/coins_bloc/coins_bloc.dart';
import 'package:web_dex/bloc/trading_status/trading_status_bloc.dart';
import 'package:web_dex/common/screen.dart';
import 'package:web_dex/generated/codegen_loader.g.dart';
import 'package:web_dex/model/coin.dart';
Expand Down Expand Up @@ -284,9 +283,6 @@ class _AddressRow extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final tradingState = context.watch<TradingStatusBloc>().state;
final canTradeCoin = tradingState.canTradeAssets([coin.id]);

return ClipRRect(
borderRadius: BorderRadius.circular(12),
child: ListTile(
Expand Down Expand Up @@ -314,7 +310,7 @@ class _AddressRow extends StatelessWidget {
visualDensity: VisualDensity.compact,
),
),
if (isSwapAddress && canTradeCoin) ...[
if (isSwapAddress) ...[
const SizedBox(width: 8),
// TODO: Refactor to use "DexPill" component from the SDK UI library (not yet created)
Padding(
Expand All @@ -329,7 +325,7 @@ class _AddressRow extends StatelessWidget {
borderRadius: BorderRadius.circular(16.0),
),
child: Text(
LocaleKeys.dexAddress.tr(),
LocaleKeys.swapAddress.tr(),
style: TextStyle(fontSize: isMobile ? 9 : 12),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class AddressBalanceCard extends StatelessWidget {
borderRadius: BorderRadius.circular(16.0),
),
child: Text(
LocaleKeys.dexAddress.tr(),
LocaleKeys.swapAddress.tr(),
style: TextStyle(fontSize: isMobile ? 9 : 12),
),
),
Expand Down
Loading