Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Type improvements

Tim Wilsond47a61ce86e1
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx
index 66f488b1c8..c0557a9f1d 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/notifications/page-client.tsx
@@ -27,7 +27,7 @@ const notifications = [
title: "Application approval",
description: "Alert when an application to a program is approved.",
},
-];
+] as const;
export function PartnerSettingsNotificationsPageClient() {
const {
@@ -50,12 +50,12 @@ export function PartnerSettingsNotificationsPageClient() {
value,
currentPreferences,
}: {
- type: string;
+ type: PreferenceType;
value: boolean;
currentPreferences: Preferences;
}) => {
await executeAsync({
- type: type as PreferenceType,
+ type,
value,
});