Skip to content

Commit

Permalink
Remove hardcoded spacing values in MetadataAvatar
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Sep 26, 2023
1 parent 30d3edd commit 4188474
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4188474

Please sign in to comment.