From 0ab1807235aca248783b8e4c4b329641a98a3438 Mon Sep 17 00:00:00 2001 From: StefanMoCoAt Date: Tue, 21 Apr 2026 15:17:59 +0200 Subject: [PATCH] chore: vereinheitliche Imports und ersetze `androidx.compose.foundation.Image` durch `Image` im Veranstalter-Wizard Signed-off-by: StefanMoCoAt --- .../presentation/EventWizardViewModel.kt | 4 +-- .../wizards/VeranstalterWizards.kt | 26 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/features/veranstaltung-feature/src/jvmMain/kotlin/at/mocode/veranstaltung/feature/presentation/EventWizardViewModel.kt b/frontend/features/veranstaltung-feature/src/jvmMain/kotlin/at/mocode/veranstaltung/feature/presentation/EventWizardViewModel.kt index 11e17f2c..92139a0f 100644 --- a/frontend/features/veranstaltung-feature/src/jvmMain/kotlin/at/mocode/veranstaltung/feature/presentation/EventWizardViewModel.kt +++ b/frontend/features/veranstaltung-feature/src/jvmMain/kotlin/at/mocode/veranstaltung/feature/presentation/EventWizardViewModel.kt @@ -65,7 +65,7 @@ data class VeranstaltungWizardState( @OptIn(ExperimentalUuidApi::class) class EventWizardViewModel( - private val veranstalterIdParam: Long?, + veranstalterIdParam: Long?, private val httpClient: HttpClient, private val authTokenManager: AuthTokenManager, private val vereinRepository: VereinRepository, @@ -251,7 +251,7 @@ class EventWizardViewModel( state = state.copy(isSaving = false) nextStep() - } catch (e: Exception) { + } catch (_: Exception) { state = state.copy(isSaving = false) nextStep() } diff --git a/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/frontend/shell/desktop/screens/veranstaltung/wizards/VeranstalterWizards.kt b/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/frontend/shell/desktop/screens/veranstaltung/wizards/VeranstalterWizards.kt index ea6c2665..478b2f2e 100644 --- a/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/frontend/shell/desktop/screens/veranstaltung/wizards/VeranstalterWizards.kt +++ b/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/frontend/shell/desktop/screens/veranstaltung/wizards/VeranstalterWizards.kt @@ -88,7 +88,7 @@ fun VeranstalterAnlegenWizard( selectedVereinId = state.editId ?: 0L, onVereinSelected = { id -> // Mock: Wir laden die Daten des Vereins aus dem Store in das VM - at.mocode.frontend.shell.desktop.data.Store.vereine.find { it.id == id }?.let { v -> + Store.vereine.find { it.id == id }?.let { v -> viewModel.send(VeranstalterWizardIntent.UpdateName(v.name)) viewModel.send(VeranstalterWizardIntent.UpdateOeps(v.oepsNummer)) viewModel.send(VeranstalterWizardIntent.UpdateOrt(v.ort ?: "")) @@ -160,12 +160,12 @@ fun VeranstalterCardPreview( if (!logoBase64.isNullOrBlank()) { val bitmap = remember(logoBase64) { decodeBase64ToImage(logoBase64) } if (bitmap != null) { - androidx.compose.foundation.Image( - bitmap = bitmap, - contentDescription = null, - modifier = Modifier.fillMaxSize().clip(CircleShape), - contentScale = ContentScale.Crop - ) + Image( + bitmap = bitmap, + contentDescription = null, + modifier = Modifier.fillMaxSize().clip(CircleShape), + contentScale = ContentScale.Crop + ) } else { Icon(Icons.Default.Image, null, modifier = Modifier.size(40.dp), tint = MaterialTheme.colorScheme.error) } @@ -281,12 +281,12 @@ fun Step2VeranstalterDetails(viewModel: VeranstalterWizardViewModel) { val logoData = state.logoBase64 val bitmap = remember(logoData) { logoData?.let { decodeBase64ToImage(it) } } if (bitmap != null) { - androidx.compose.foundation.Image( - bitmap = bitmap, - contentDescription = null, - modifier = Modifier.size(80.dp).clip(CircleShape), - contentScale = ContentScale.Crop - ) + Image( + bitmap = bitmap, + contentDescription = null, + modifier = Modifier.size(80.dp).clip(CircleShape), + contentScale = ContentScale.Crop + ) } } else { Icon(Icons.Default.Image, null, modifier = Modifier.size(40.dp), tint = Color.Gray)