mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 13:13:43 +00:00
Add proper text for pending sheet.
This commit is contained in:
committed by
Cody Henthorne
parent
7e68050e0a
commit
05296e3d9b
@@ -116,9 +116,14 @@ private fun DonationPendingBottomSheetContent(
|
||||
modifier = Modifier.padding(bottom = 8.dp)
|
||||
)
|
||||
|
||||
// TODO [sepa] -- Need proper copy here for one-time donations.
|
||||
val textResource = if (badge.isSubscription()) {
|
||||
R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending
|
||||
} else {
|
||||
R.string.DonationPendingBottomSheet__your_one_time_donation_is_pending
|
||||
}
|
||||
|
||||
Text(
|
||||
text = stringResource(id = R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending, badge.name),
|
||||
text = stringResource(id = textResource, badge.name),
|
||||
textAlign = TextAlign.Center,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(bottom = 20.dp)
|
||||
|
||||
Reference in New Issue
Block a user