Removed "Neue Überweisung" from SideMenu

This commit is contained in:
dankito 2024-10-04 09:36:34 +02:00
parent 8c24b83ecf
commit 41a6bef7d2
1 changed files with 0 additions and 16 deletions

View File

@ -25,7 +25,6 @@ import net.codinux.banking.ui.composables.text.ItemDivider
import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.DI
import net.codinux.banking.ui.extensions.verticalScroll
import net.codinux.banking.ui.model.ShowTransferMoneyDialogData
import org.jetbrains.compose.resources.imageResource
private val uiState = DI.uiState
@ -58,8 +57,6 @@ fun SideMenuContent() {
val accounts = uiState.accounts.collectAsState().value
val accountsThatSupportMoneyTransfer = uiState.accountsThatSupportMoneyTransfer.collectAsState().value
val coroutineScope = rememberCoroutineScope()
Column(Modifier.fillMaxSize().background(Colors.DrawerContentBackground).verticalScroll()) {
@ -98,19 +95,6 @@ fun SideMenuContent() {
drawerState.close()
}
}
if (accountsThatSupportMoneyTransfer.isNotEmpty()) {
Spacer(Modifier.height(VerticalSpacing))
NavigationMenuItem(itemModifier, "Neue Überweisung", textColor, horizontalPadding = ItemHorizontalPadding,
icon = { Icon(Icons.Filled.Add, "Neue Überweisung", Modifier.size(iconSize), tint = textColor) }) {
uiState.showTransferMoneyDialogData.value = ShowTransferMoneyDialogData()
coroutineScope.launch {
drawerState.close()
}
}
}
}
if (accounts.isNotEmpty()) {