mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Post Donate Badge Toggle Modal
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ONE_TIME_DONATION_CONFIG_ID = '1';
|
||||
export const BOOST_ID = 'BOOST';
|
||||
|
||||
export const donationStateSchema = z.enum([
|
||||
'INTENT',
|
||||
@@ -14,6 +15,8 @@ export const donationStateSchema = z.enum([
|
||||
'DONE',
|
||||
]);
|
||||
|
||||
export type DonationStateType = z.infer<typeof donationStateSchema>;
|
||||
|
||||
export const donationErrorTypeSchema = z.enum([
|
||||
// Used if the user is redirected back from validation, but continuing forward fails
|
||||
'Failed3dsValidation',
|
||||
|
||||
@@ -8,6 +8,7 @@ export enum ToastType {
|
||||
AlreadyRequestedToJoin = 'AlreadyRequestedToJoin',
|
||||
AttachmentDownloadFailed = 'AttachmentDownloadFailed',
|
||||
AttachmentDownloadStillInProgress = 'AttachmentDownloadStillInProgress',
|
||||
DonationCompletedAndBadgeApplicationFailed = 'DonationCompletedAndBadgeApplicationFailed',
|
||||
Blocked = 'Blocked',
|
||||
BlockedGroup = 'BlockedGroup',
|
||||
CallHistoryCleared = 'CallHistoryCleared',
|
||||
@@ -103,6 +104,7 @@ export type AnyToast =
|
||||
toastType: ToastType.AttachmentDownloadStillInProgress;
|
||||
parameters: { count: number };
|
||||
}
|
||||
| { toastType: ToastType.DonationCompletedAndBadgeApplicationFailed }
|
||||
| { toastType: ToastType.Blocked }
|
||||
| { toastType: ToastType.BlockedGroup }
|
||||
| { toastType: ToastType.CallHistoryCleared }
|
||||
|
||||
Reference in New Issue
Block a user