Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ private fun AccountRow(
premiumType = accountViewItem.premiumType,
modifier = Modifier.padding(start = 8.dp)
)
AccountTypeIcon(accountViewItem)
AccountMoreButton(accountViewItem, navController)
}
}
Expand All @@ -278,20 +277,6 @@ private fun AccountSubtitle(accountViewItem: AccountViewItem) {
}
}

@Composable
private fun AccountTypeIcon(accountViewItem: AccountViewItem) {
val iconRes = when {
accountViewItem.isWatchAccount -> R.drawable.icon_binocule_20
accountViewItem.showNfcIcon -> R.drawable.ic_card
else -> return
}
Icon(
painter = painterResource(id = iconRes),
contentDescription = null,
tint = ComposeAppTheme.colors.grey
)
}

@Composable
private fun AccountMoreButton(
accountViewItem: AccountViewItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ object ManageAccountsModule {
val selected: Boolean,
val backupRequired: Boolean,
val showAlertIcon: Boolean,
val isWatchAccount: Boolean,
val isHardwareWallet: Boolean,
val showNfcIcon: Boolean,
val migrationRequired: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class ManageAccountsViewModel(
selected = account == activeAccount,
backupRequired = account.supportsBackup && !account.isBackedUp && !account.isFileBackedUp,
showAlertIcon = account.supportsBackup && (!account.isBackedUp || account.nonStandard || account.nonRecommended),
isWatchAccount = account.isWatchAccount,
isHardwareWallet = account.isHardwareWalletAccount,
showNfcIcon = account.type is AccountType.HardwareCard,
migrationRequired = account.nonStandard,
Expand Down
Loading