From 30d3eddb35b015b6bfdb93ccb6ba331000f8cecb Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Tue, 19 Sep 2023 06:17:10 +0530 Subject: [PATCH] Rename `IconCardsScreen` to `MetadataAvatarScreen` --- common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt | 4 ++-- .../kotlin/org/hisp/dhis/common/screens/Components.kt | 2 +- .../screens/{IconCardsScreen.kt => MetadataAvatarScreen.kt} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename common/src/commonMain/kotlin/org/hisp/dhis/common/screens/{IconCardsScreen.kt => MetadataAvatarScreen.kt} (99%) diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt index da09ea305..3d10f4510 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt @@ -31,7 +31,6 @@ import org.hisp.dhis.common.screens.Components import org.hisp.dhis.common.screens.FormShellsScreen import org.hisp.dhis.common.screens.FormsComponentsScreen import org.hisp.dhis.common.screens.IconButtonScreen -import org.hisp.dhis.common.screens.IconCardsScreen import org.hisp.dhis.common.screens.InputIntegerScreen import org.hisp.dhis.common.screens.InputLetterScreen import org.hisp.dhis.common.screens.InputLongTextScreen @@ -45,6 +44,7 @@ import org.hisp.dhis.common.screens.InputScreen import org.hisp.dhis.common.screens.InputTextScreen import org.hisp.dhis.common.screens.LegendDescriptionScreen import org.hisp.dhis.common.screens.LegendScreen +import org.hisp.dhis.common.screens.MetadataAvatarScreen import org.hisp.dhis.common.screens.ProgressScreen import org.hisp.dhis.common.screens.RadioButtonScreen import org.hisp.dhis.common.screens.SectionScreen @@ -124,7 +124,7 @@ fun Main() { Components.LEGEND_DESCRIPTION -> LegendDescriptionScreen() Components.FORM_SHELLS -> FormShellsScreen() Components.BUTTON_BLOCK -> ButtonBlockScreen() - Components.ICON_CARDS -> IconCardsScreen() + Components.METADATA_AVATAR -> MetadataAvatarScreen() Components.BOTTOM_SHEET_HEADER -> BottomSheetHeaderScreen() Components.TAGS -> TagsScreen() Components.SECTIONS -> SectionScreen() diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/Components.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/Components.kt index bacc51319..e0fbd2e6f 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/Components.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/Components.kt @@ -27,7 +27,7 @@ enum class Components(val label: String) { BUTTON_BLOCK("Button block"), CHIPS("Chips"), BADGES("Badges"), - ICON_CARDS("Icon Cards"), + METADATA_AVATAR("Metadata Avatar"), INPUT_RADIO_BUTTON("Input Radio Button"), SWITCH("Switch"), } diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/IconCardsScreen.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/MetadataAvatarScreen.kt similarity index 99% rename from common/src/commonMain/kotlin/org/hisp/dhis/common/screens/IconCardsScreen.kt rename to common/src/commonMain/kotlin/org/hisp/dhis/common/screens/MetadataAvatarScreen.kt index 94dbf38e5..59dc1a79d 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/IconCardsScreen.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/MetadataAvatarScreen.kt @@ -11,7 +11,7 @@ import org.hisp.dhis.mobile.ui.designsystem.resource.provideDHIS2Icon import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor @Composable -fun IconCardsScreen() { +fun MetadataAvatarScreen() { ColumnComponentContainer(title = "Metadata Avatar") { RowComponentContainer { MetadataAvatar(