From 418847482b8cdcd401411485ea7935338505f63a Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Tue, 19 Sep 2023 06:14:45 +0530 Subject: [PATCH] Remove hardcoded spacing values in `MetadataAvatar` --- .../dhis/mobile/ui/designsystem/component/MetadataAvatar.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/MetadataAvatar.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/MetadataAvatar.kt index 2e6a4dea4..551759347 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/MetadataAvatar.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/MetadataAvatar.kt @@ -12,7 +12,6 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color -import androidx.compose.ui.unit.dp import org.hisp.dhis.mobile.ui.designsystem.component.AvatarSize.Large import org.hisp.dhis.mobile.ui.designsystem.component.AvatarSize.Normal import org.hisp.dhis.mobile.ui.designsystem.theme.Radius @@ -35,8 +34,8 @@ fun MetadataAvatar( size: AvatarSize = Normal, ) { val backgroundPadding = when (size) { - Normal -> 0.dp - Large -> 4.dp + Normal -> Spacing.Spacing0 + Large -> Spacing.Spacing4 } val cornerRadius = when (size) { Normal -> Radius.XS