diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 42834902..9e06b5c9 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -37,11 +37,7 @@ kotlin { } } val androidTest by getting { dependsOn(androidAndroidTestRelease) } - val desktopMain by getting { - dependencies { - implementation(libs.kamel.image) - } - } + val desktopMain by getting { dependencies { implementation(libs.kamel.image) } } val desktopTest by getting } } diff --git a/common/src/androidMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt b/common/src/androidMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt index 9acbca6b..6235e882 100644 --- a/common/src/androidMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt +++ b/common/src/androidMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt @@ -15,13 +15,14 @@ actual fun NetworkImage( modifier: Modifier, ) { Image( - painter = rememberImagePainter( - data = url, - builder = { - transformations(CircleCropTransformation()) - crossfade(true) - }, - ), + painter = + rememberImagePainter( + data = url, + builder = { + transformations(CircleCropTransformation()) + crossfade(true) + }, + ), contentDescription = contentDescription, modifier = Modifier.then(modifier), ) diff --git a/common/src/desktopMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt b/common/src/desktopMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt index 9af7de3a..6a04a819 100644 --- a/common/src/desktopMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt +++ b/common/src/desktopMain/kotlin/dev/msfjarvis/claw/common/ui/composables.kt @@ -1,24 +1,20 @@ package dev.msfjarvis.claw.common.ui -import androidx.compose.foundation.layout.requiredSize -import androidx.compose.foundation.shape.CircleShape import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier -import androidx.compose.ui.draw.clip -import androidx.compose.ui.unit.dp import io.kamel.image.KamelImage import io.kamel.image.lazyImageResource @Composable actual fun NetworkImage( - url: String, - contentDescription: String, - modifier: Modifier, + url: String, + contentDescription: String, + modifier: Modifier, ) { - KamelImage( - resource = lazyImageResource(url), - contentDescription = contentDescription, - modifier = Modifier.then(modifier), - crossfade = true, - ) + KamelImage( + resource = lazyImageResource(url), + contentDescription = contentDescription, + modifier = Modifier.then(modifier), + crossfade = true, + ) }