From 0525d4ea77b5c2983732ca6c33090dfb2c7b1f5d Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 9 Sep 2024 03:56:33 +0200 Subject: [PATCH] Renamed AppContent to ContentPane --- composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt | 2 +- .../banking/ui/appskeleton/{AppContent.kt => ContentPane.kt} | 2 +- .../kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/{AppContent.kt => ContentPane.kt} (97%) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt index 5babba6..afb4ecc 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt @@ -95,7 +95,7 @@ fun App() { } ) { scaffoldPadding -> if (isMobile) { - AppContent(scaffoldPadding, uiState, uiSettings, snackbarHostState, isMobile) + ContentPane(scaffoldPadding, uiState, uiSettings, snackbarHostState, isMobile) } else { DesktopLayout(scaffoldPadding, uiState, uiSettings, snackbarHostState, desktopDrawerWidth) } diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/AppContent.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt similarity index 97% rename from composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/AppContent.kt rename to composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt index 9113255..b77f67e 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/AppContent.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt @@ -11,7 +11,7 @@ import net.codinux.banking.ui.settings.UiSettings import net.codinux.banking.ui.state.UiState @Composable -fun AppContent( +fun ContentPane( scaffoldPadding: PaddingValues, uiState: UiState, uiSettings: UiSettings, diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt index 0927e31..e611187 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt @@ -24,7 +24,7 @@ fun DesktopLayout( Column(Modifier.fillMaxSize().weight(1f).padding(start = 6.dp)) { Row(Modifier.fillMaxWidth().weight(1f)) { - AppContent(scaffoldPadding, uiState, uiSettings, snackbarHostState, false) + ContentPane(scaffoldPadding, uiState, uiSettings, snackbarHostState, false) } Row(Modifier.fillMaxWidth()) {