Add proper text for pending sheet.

This commit is contained in:
Alex Hart
2023-10-11 16:25:47 -03:00
committed by Cody Henthorne
parent 7e68050e0a
commit 05296e3d9b
2 changed files with 9 additions and 2 deletions

View File

@@ -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)