Donations: Introduce timeouts in early stages of the workflow

This commit is contained in:
Scott Nonnenberg 2025-07-31 07:15:59 +10:00 committed by GitHub
commit fd794ae90d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 198 additions and 109 deletions

View file

@ -280,10 +280,10 @@ export function renderToast({
);
}
if (toastType === ToastType.DonationCancelled) {
if (toastType === ToastType.DonationCanceled) {
return (
<Toast onClose={hideToast}>
{i18n('icu:Donations__Toast__Cancelled')}
{i18n('icu:Donations__Toast__Canceled')}
</Toast>
);
}
@ -337,12 +337,16 @@ export function renderToast({
}
if (
toastType === ToastType.DonationCanceledWithView ||
toastType === ToastType.DonationConfirmationNeeded ||
toastType === ToastType.DonationError ||
toastType === ToastType.DonationVerificationFailed ||
toastType === ToastType.DonationVerificationNeeded
) {
const mapping = {
[ToastType.DonationCanceledWithView]: i18n(
'icu:Donations__Toast__Canceled'
),
[ToastType.DonationConfirmationNeeded]: i18n(
'icu:Donations__Toast__ConfirmationNeeded'
),