diff --git a/apps/ui/src/types.ts b/apps/ui/src/types.ts index 450162d03..34d969652 100644 --- a/apps/ui/src/types.ts +++ b/apps/ui/src/types.ts @@ -4,6 +4,11 @@ import { ApiSpace as OffchainApiSpace } from '@/networks/offchain/api/types'; // UI export type NotificationType = 'error' | 'warning' | 'success'; +export type EmailSubscriptionType = + | 'summary' + | 'newProposal' + | 'closedProposal'; + export type ProposalState = | 'pending' | 'active' @@ -306,8 +311,8 @@ export type User = { } & Partial; export type EmailSubscription = { - status: string; - subscriptions: string[]; + status: 'NOT_SUBSCRIBED' | 'UNVERIFIED' | 'VERIFIED'; + subscriptions: EmailSubscriptionType[]; }; export type UserActivity = { diff --git a/apps/ui/src/views/Settings/EmailNotifications.vue b/apps/ui/src/views/Settings/EmailNotifications.vue index c56f04342..077f3592f 100644 --- a/apps/ui/src/views/Settings/EmailNotifications.vue +++ b/apps/ui/src/views/Settings/EmailNotifications.vue @@ -1,6 +1,7 @@