From 41a6bef7d2f610217d1c9e771f8054a63955810e Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 4 Oct 2024 09:36:34 +0200 Subject: [PATCH] =?UTF-8?q?Removed=20"Neue=20=C3=9Cberweisung"=20from=20Si?= =?UTF-8?q?deMenu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../banking/ui/appskeleton/SideMenuContent.kt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenuContent.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenuContent.kt index e55ae20..777830c 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenuContent.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenuContent.kt @@ -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()) {