Removed "Neue Überweisung" from SideMenu
This commit is contained in:
parent
8c24b83ecf
commit
41a6bef7d2
|
@ -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.Colors
|
||||||
import net.codinux.banking.ui.config.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
import net.codinux.banking.ui.extensions.verticalScroll
|
import net.codinux.banking.ui.extensions.verticalScroll
|
||||||
import net.codinux.banking.ui.model.ShowTransferMoneyDialogData
|
|
||||||
import org.jetbrains.compose.resources.imageResource
|
import org.jetbrains.compose.resources.imageResource
|
||||||
|
|
||||||
private val uiState = DI.uiState
|
private val uiState = DI.uiState
|
||||||
|
@ -58,8 +57,6 @@ fun SideMenuContent() {
|
||||||
|
|
||||||
val accounts = uiState.accounts.collectAsState().value
|
val accounts = uiState.accounts.collectAsState().value
|
||||||
|
|
||||||
val accountsThatSupportMoneyTransfer = uiState.accountsThatSupportMoneyTransfer.collectAsState().value
|
|
||||||
|
|
||||||
val coroutineScope = rememberCoroutineScope()
|
val coroutineScope = rememberCoroutineScope()
|
||||||
|
|
||||||
Column(Modifier.fillMaxSize().background(Colors.DrawerContentBackground).verticalScroll()) {
|
Column(Modifier.fillMaxSize().background(Colors.DrawerContentBackground).verticalScroll()) {
|
||||||
|
@ -98,19 +95,6 @@ fun SideMenuContent() {
|
||||||
drawerState.close()
|
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()) {
|
if (accounts.isNotEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue