From 6b014f9da1a2b91a6e3207c5998d62def4b3535b 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 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..775e37920 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 @@ -35,8 +35,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