Skip to content

Commit

Permalink
update and adapt design library version
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr committed Feb 8, 2024
1 parent 74be855 commit b7722f9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.dhis2.databinding.ItemDatasetBinding
import org.dhis2.usescases.datasets.datasetDetail.DataSetDetailModel
import org.dhis2.usescases.datasets.datasetDetail.datasetList.mapper.DatasetCardMapper
import org.hisp.dhis.mobile.ui.designsystem.component.ListCard
import org.hisp.dhis.mobile.ui.designsystem.component.ListCardTitleModel

class DataSetListAdapter(
val viewModel: DataSetListViewModel,
Expand Down Expand Up @@ -49,7 +50,7 @@ class DataSetListAdapter(
)
ListCard(
listAvatar = card.avatar,
title = card.title,
title = ListCardTitleModel(text = card.title),
lastUpdated = card.lastUpdated,
additionalInfoList = card.additionalInfo,
actionButton = card.actionButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import org.dhis2.usescases.programEventDetail.eventList.ui.mapper.EventCardMappe
import org.dhis2.usescases.teiDashboard.dashboardfragments.teidata.teievents.EventViewHolder
import org.hisp.dhis.android.core.program.Program
import org.hisp.dhis.mobile.ui.designsystem.component.ListCard
import org.hisp.dhis.mobile.ui.designsystem.component.ListCardTitleModel

class ProgramEventDetailLiveAdapter(
private val program: Program,
Expand Down Expand Up @@ -65,7 +66,7 @@ class ProgramEventDetailLiveAdapter(
)
ListCard(
listAvatar = card.avatar,
title = card.title,
title = ListCardTitleModel(text = card.title),
lastUpdated = card.lastUpdated,
additionalInfoList = card.additionalInfo,
actionButton = card.actionButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import org.dhis2.databinding.ItemSearchErrorBinding
import org.dhis2.databinding.ItemSearchTrackedEntityBinding
import org.dhis2.usescases.searchTrackEntity.ui.mapper.TEICardMapper
import org.hisp.dhis.mobile.ui.designsystem.component.ListCard
import org.hisp.dhis.mobile.ui.designsystem.component.ListCardTitleModel

class SearchTeiLiveAdapter(
private val fromRelationship: Boolean,
Expand Down Expand Up @@ -101,7 +102,7 @@ class SearchTeiLiveAdapter(
)
ListCard(
listAvatar = card.avatar,
title = card.title,
title = ListCardTitleModel(text = card.title),
lastUpdated = card.lastUpdated,
additionalInfoList = card.additionalInfo,
actionButton = card.actionButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal fun ProvideCheckBoxInput(
uid = option.uid(),
checked = fieldUiModel.displayName == option.displayName(),
enabled = true,
textInput = option.displayName(),
textInput = option.displayName() ?: "",
)
} ?: emptyList()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal fun ProvideRadioButtonInput(
uid = option.uid(),
selected = fieldUiModel.displayName == option.displayName(),
enabled = true,
textInput = option.displayName(),
textInput = option.displayName() ?: "",
)
} ?: emptyList()

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kotlin = '1.9.21'
hilt = '2.47'
hiltCompiler = '1.0.0'
jacoco = '0.8.10'
designSystem = "0.2-20240206.071329-16"
designSystem = "0.2-20240208.105715-18"
dhis2sdk = "1.10.0-20240129.132841-8"
ruleEngine = "2.1.9"
appcompat = "1.6.1"
Expand Down

0 comments on commit b7722f9

Please sign in to comment.