fix: Cleanup balance page and balance page view_model

This commit is contained in:
Blazebrain 2024-07-25 11:20:04 +01:00
parent 5c250a4322
commit 24cea6b217
2 changed files with 3 additions and 15 deletions

View file

@ -237,10 +237,6 @@ class CryptoBalanceWidget extends StatelessWidget {
additionalFiatBalance: balance.fiatAdditionalBalance,
hasAdditionalBalance:
dashboardViewModel.balanceViewModel.hasAdditionalBalance,
// hasFullBalance: dashboardViewModel.balanceViewModel.hasFullBalance,
// fullBalanceLabel: '${dashboardViewModel.balanceViewModel.fullBalanceLabel}',
// fullBalance: balance.fullBalance,
// fullFiatBalance: balance.fiatFullBalance,
frozenBalance: balance.frozenBalance,
frozenFiatBalance: balance.fiatFrozenBalance,
currency: balance.asset,
@ -372,10 +368,6 @@ class BalanceRowWidget extends StatelessWidget {
required this.additionalFiatBalance,
required this.frozenBalance,
required this.frozenFiatBalance,
// required this.fullBalanceLabel,
// required this.fullBalance,
// required this.fullFiatBalance,
// required this.hasFullBalance,
required this.currency,
required this.hasAdditionalBalance,
required this.isTestnet,
@ -390,10 +382,6 @@ class BalanceRowWidget extends StatelessWidget {
final String additionalFiatBalance;
final String frozenBalance;
final String frozenFiatBalance;
// final String fullBalanceLabel;
// final String fullBalance;
// final String fullFiatBalance;
// final bool hasFullBalance;
final CryptoCurrency currency;
final bool hasAdditionalBalance;
final bool isTestnet;

View file

@ -66,7 +66,7 @@ abstract class BalanceViewModelBase with Store {
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;
@computed
bool get hasSilentPayments => wallet.type == WalletType.bitcoin;
bool get hasSilentPayments => wallet.type == WalletType.bitcoin && !wallet.isHardwareWallet;
@computed
double get price {
@ -93,7 +93,7 @@ abstract class BalanceViewModelBase with Store {
wallet.type == WalletType.tron;
@computed
bool get hasAccounts => wallet.type == WalletType.monero;
bool get hasAccounts => wallet.type == WalletType.monero || wallet.type == WalletType.wownero;
@computed
SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy;