From 3986374f75d07b925f79f460b08dd3adc494cd69 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 5 Sep 2024 02:17:07 +0200 Subject: [PATCH] Moved transaction Composables to subpackage transactions --- composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt | 2 +- .../ui/composables/{ => transactions}/TransactionListItem.kt | 3 ++- .../ui/composables/{ => transactions}/TransactionsList.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/{ => transactions}/TransactionListItem.kt (94%) rename composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/{ => transactions}/TransactionsList.kt (98%) 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 e3ad89d..487e1e5 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/App.kt @@ -16,7 +16,7 @@ import kotlinx.coroutines.launch import net.codinux.banking.ui.appskeleton.BottomBar import net.codinux.banking.ui.appskeleton.SideMenu import net.codinux.banking.ui.composables.StateHandler -import net.codinux.banking.ui.composables.TransactionsList +import net.codinux.banking.ui.composables.transactions.TransactionsList import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.DI import net.codinux.log.LoggerFactory diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt similarity index 94% rename from composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt rename to composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt index e50fdc3..7c9e207 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt @@ -1,4 +1,4 @@ -package net.codinux.banking.ui.composables +package net.codinux.banking.ui.composables.transactions import androidx.compose.foundation.background import androidx.compose.foundation.layout.* @@ -10,6 +10,7 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import net.codinux.banking.client.model.UserAccount +import net.codinux.banking.ui.composables.BankIcon import net.codinux.banking.ui.config.DI import net.codinux.banking.ui.model.AccountTransactionViewModel diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt similarity index 98% rename from composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt rename to composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt index 96d9f66..7cd3a18 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt @@ -1,4 +1,4 @@ -package net.codinux.banking.ui.composables +package net.codinux.banking.ui.composables.transactions import androidx.compose.foundation.background import androidx.compose.foundation.layout.*