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.

improve styles

Steven Tey94028d11cec4
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/notifications/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/notifications/page-client.tsx
index f5b6f042c1..213e5bc8c5 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/notifications/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/notifications/page-client.tsx
@@ -71,54 +71,51 @@ export default function NotificationsSettingsPageClient() {
};
return (
- <>
- <div className="rounded-lg border border-gray-200 bg-white">
- <div className="flex flex-col items-center justify-between gap-4 space-y-3 border-b border-gray-200 p-5 sm:flex-row sm:space-y-0 sm:p-10">
- <div className="flex max-w-screen-sm flex-col space-y-3">
- <h2 className="text-xl font-medium">Workspace Notifications</h2>
- <p className="text-sm text-gray-500">
- Adjust your personal notification preferences and choose which
- updates you want to receive. These settings will only be applied
- to your personal account.
- </p>
- </div>
- </div>
-
- <div className="flex flex-col gap-3 p-5 sm:p-10">
- {notifications.map(({ type, icon, title, description }) => (
- <div
- key={type}
- className="flex items-center justify-between gap-4 rounded-xl border border-gray-200 bg-white p-5"
- >
- <DomainCardTitleColumn
- domain={title}
- icon={icon}
- description={description}
- />
- <Switch
- checked={preferences?.[type] ?? false}
- disabled={isLoading}
- fn={(checked: boolean) => {
- if (!preferences) return;
+ <div>
+ <div className="max-w-screen-sm pb-8">
+ <h2 className="text-xl font-semibold tracking-tight text-black">
+ Workspace Notifications
+ </h2>
+ <p className="mt-3 text-sm text-gray-500">
+ Adjust your personal notification preferences and choose which updates
+ you want to receive. These settings will only be applied to your
+ personal account.
+ </p>
+ </div>
+ <div className="mt-2 grid grid-cols-1 gap-3">
+ {notifications.map(({ type, icon, title, description }) => (
+ <div
+ key={type}
+ className="flex items-center justify-between gap-4 rounded-xl border border-gray-200 bg-white p-5"
+ >
+ <DomainCardTitleColumn
+ domain={title}
+ icon={icon}
+ description={description}
+ />
+ <Switch
+ checked={preferences?.[type] ?? false}
+ disabled={isLoading}
+ fn={(checked: boolean) => {
+ if (!preferences) return;
- update(
- () =>
- handleUpdate({
- type,
- value: checked,
- currentPreferences: preferences,
- }),
- {
- ...preferences,
- [type]: checked,
- },
- );
- }}
- />
- </div>
- ))}
- </div>
+ update(
+ () =>
+ handleUpdate({
+ type,
+ value: checked,
+ currentPreferences: preferences,
+ }),
+ {
+ ...preferences,
+ [type]: checked,
+ },
+ );
+ }}
+ />
+ </div>
+ ))}
</div>
- </>
+ </div>
);
}