From 9485869f451533f59767185c6b17931165bd308d Mon Sep 17 00:00:00 2001 From: Igor Katsuba Date: Mon, 6 May 2024 22:22:11 +0300 Subject: [PATCH] fix(web): readonly name and slug fields in workspace settings --- .../settings/notifications/page.tsx | 27 +------------ .../[workspaceSlug]/settings/page.tsx | 40 ++++++++++++++++++- 2 files changed, 39 insertions(+), 28 deletions(-) diff --git a/apps/web/app/app/(dashboard)/[workspaceSlug]/settings/notifications/page.tsx b/apps/web/app/app/(dashboard)/[workspaceSlug]/settings/notifications/page.tsx index f725537..4c99a99 100644 --- a/apps/web/app/app/(dashboard)/[workspaceSlug]/settings/notifications/page.tsx +++ b/apps/web/app/app/(dashboard)/[workspaceSlug]/settings/notifications/page.tsx @@ -17,7 +17,6 @@ import { Switch } from '@saasfy/ui/switch'; import { toast } from '@saasfy/ui/use-toast'; const FormSchema = z.object({ - marketing_emails: z.boolean().default(false).optional(), security_emails: z.boolean(), }); @@ -30,14 +29,7 @@ export default function Notifications() { }); function onSubmit(data: z.infer) { - toast({ - title: 'You submitted the following values:', - description: ( -
-          {JSON.stringify(data, null, 2)}
-        
- ), - }); + console.log(data); } return ( @@ -46,23 +38,6 @@ export default function Notifications() {

Email Notifications

- ( - -
- Marketing emails - - Receive emails about new products, features, and more. - -
- - - -
- )} - /> @@ -19,7 +41,21 @@ export default function Settings() {
- + +
+
+ + + +
+ + + Workspace Slug + The slug of your workspace + + +
+