Updated on 2026-08-14
This commit is contained in:
parent
66452a8377
commit
3a7701062b
1 changed files with 1 additions and 20 deletions
|
|
@ -75,8 +75,6 @@ private fun CounterAndAwards(purchasedWalletCount: Int, expectedAwards: Expected
|
|||
|
||||
if (expectedAwards != null) {
|
||||
Awards(expectedAwards)
|
||||
} else if (purchasedWalletCount != 0) {
|
||||
EmptyUpcomingPayments()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -96,7 +94,7 @@ private fun Counter(purchasedWalletCount: Int, expectedAwards: ExpectedAwards?)
|
|||
),
|
||||
endTextColor = TangemTheme.colors.text.primary1,
|
||||
endTextStyle = TangemTheme.typography.body2,
|
||||
cornersToRound = if (isExpectedAwardsPresent || purchasedWalletCount != 0) {
|
||||
cornersToRound = if (isExpectedAwardsPresent) {
|
||||
CornersToRound.TOP_2
|
||||
} else {
|
||||
CornersToRound.ALL_4
|
||||
|
|
@ -160,23 +158,6 @@ private fun Awards(expectedAwards: ExpectedAwards) {
|
|||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun EmptyUpcomingPayments() {
|
||||
Divider(
|
||||
color = TangemTheme.colors.stroke.primary,
|
||||
thickness = TangemTheme.dimens.size0_5,
|
||||
)
|
||||
AwardText(
|
||||
startText = stringResource(id = R.string.referral_expected_awards),
|
||||
startTextColor = TangemTheme.colors.text.tertiary,
|
||||
startTextStyle = TangemTheme.typography.subtitle2,
|
||||
endText = "",
|
||||
endTextColor = TangemTheme.colors.text.tertiary,
|
||||
endTextStyle = TangemTheme.typography.body2,
|
||||
cornersToRound = CornersToRound.BOTTOM_2,
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun LessMoreButton(isExpanded: MutableState<Boolean>) {
|
||||
Surface(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue