Skip to content

Commit

Permalink
" implemented nullandempty"
Browse files Browse the repository at this point in the history
  • Loading branch information
priyacs651 committed Apr 29, 2024
1 parent 1984436 commit 274c1c4
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum class SecondaryDetailsStyle {
NORMAL,
ERROR
}

/**
* This Composable function is used to Show the Cards in a list to pick the particular from User.
*
Expand Down Expand Up @@ -121,18 +122,18 @@ fun TUISelectionCard(
}


if (primaryDescription != null) {
if (primaryDescription.isNullOrEmpty()) {
Text(
modifier = Modifier.testTag(tags.descriptionTag),
text = primaryDescription,
color = TUITheme.colors.inputText,
text = stringResource(id = R.string.not_availble),
color = TUITheme.colors.utilityDisabledContent,
style = TUITheme.typography.heading6
)
}else{
} else {
Text(
modifier = Modifier.testTag(tags.descriptionTag),
text = stringResource(id = R.string.not_availble),
color = TUITheme.colors.utilityDisabledContent,
text = primaryDescription,
color = TUITheme.colors.inputText,
style = TUITheme.typography.heading6
)
}
Expand Down

0 comments on commit 274c1c4

Please sign in to comment.