mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +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)
|
||||
|
||||
@@ -5870,6 +5870,8 @@
|
||||
<string name="DonationPendingBottomSheet__donation_pending">Donation pending</string>
|
||||
<!-- Top text block of donation pending sheet displayed after subscribing via a bank transfer. Placeholder is the badge name. -->
|
||||
<string name="DonationPendingBottomSheet__your_monthly_donation_is_pending">Your monthly donation is pending. You’ll be able to display the %1$s badge on your profile when your donation is received.</string>
|
||||
<!-- Top text block of donation pending sheet displayed after one-time donation via a bank transfer. Placeholder is the badge name. -->
|
||||
<string name="DonationPendingBottomSheet__your_one_time_donation_is_pending">Your one-time donation is pending. You’ll be able to display the %1$s badge on your profile when your donation is received.</string>
|
||||
<!-- Bottom text block of donation pending sheet displayed after donating via a bank transfer. Placeholder is for learn more. -->
|
||||
<string name="DonationPendingBottomSheet__bank_transfers_usually_take">Bank transfers usually take 1 business day to process. %1$s</string>
|
||||
<!-- Learn more text for donation pending sheet displayed after donating via a bank transfer. -->
|
||||
|
||||
Reference in New Issue
Block a user