Fixed showing ExportScreen on Desktop

This commit is contained in:
dankito 2024-09-12 11:51:09 +02:00
parent fd87598b96
commit 0ff2f684ea
2 changed files with 7 additions and 2 deletions

View File

@ -23,5 +23,7 @@ fun ContentPane(
TransactionsList(uiState, uiSettings, isMobile)
}
if (isMobile) {
StateHandler(uiState, snackbarHostState)
}
}

View File

@ -2,10 +2,11 @@ package net.codinux.banking.ui.appskeleton
import androidx.compose.foundation.layout.*
import androidx.compose.material.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import net.codinux.banking.ui.composables.StateHandler
import net.codinux.banking.ui.settings.UiSettings
import net.codinux.banking.ui.state.UiState
@ -23,6 +24,8 @@ fun DesktopLayout(
}
Column(Modifier.fillMaxSize().weight(1f).padding(start = 6.dp)) {
StateHandler(uiState, snackbarHostState)
Row(Modifier.fillMaxWidth().weight(1f)) {
ContentPane(scaffoldPadding, uiState, uiSettings, snackbarHostState, false)
}