The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update register
Kiran Ke646f63d3e19
diff --git a/apps/web/app/app.dub.co/(auth)/login/form.tsx b/apps/web/app/app.dub.co/(auth)/login/form.tsxindex be45846b7f..e0bcf6e836 100644--- a/apps/web/app/app.dub.co/(auth)/login/form.tsx+++ b/apps/web/app/app.dub.co/(auth)/login/form.tsx@@ -35,6 +35,7 @@ export const authMethods = ["saml","password",] as const;+export type AuthMethod = (typeof authMethods)[number];const errorCodes = {diff --git a/apps/web/app/app.dub.co/(auth)/register/page-client.tsx b/apps/web/app/app.dub.co/(auth)/register/page-client.tsxindex 3050973e0b..a9ea473348 100644--- a/apps/web/app/app.dub.co/(auth)/register/page-client.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/page-client.tsx@@ -1,17 +1,14 @@"use client";-import { AuthLayout } from "@/ui/layout/auth-layout";import { RegisterProvider, useRegisterContext } from "./context";import { SignUpForm } from "./signup-form";import { VerifyEmailForm } from "./verify-email-form";export default function RegisterPageClient() {return (- <AuthLayout>- <RegisterProvider>- <RegisterFlow />- </RegisterProvider>- </AuthLayout>+ <RegisterProvider>+ <RegisterFlow />+ </RegisterProvider>);}diff --git a/apps/web/app/app.dub.co/(auth)/register/page.tsx b/apps/web/app/app.dub.co/(auth)/register/page.tsxindex 151110ea72..d2823556e1 100644--- a/apps/web/app/app.dub.co/(auth)/register/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/page.tsx@@ -1,3 +1,4 @@+import { AuthLayout } from "@/ui/layout/auth-layout";import { constructMetadata } from "@dub/utils";import RegisterPageClient from "./page-client";@@ -6,5 +7,9 @@ export const metadata = constructMetadata({});export default function RegisterPage() {- return <RegisterPageClient />;+ return (+ <AuthLayout>+ <RegisterPageClient />+ </AuthLayout>+ );}diff --git a/apps/web/app/app.dub.co/(auth)/register/signup-email.tsx b/apps/web/app/app.dub.co/(auth)/register/signup-email.tsxindex ff857b0773..b91c3146a4 100644--- a/apps/web/app/app.dub.co/(auth)/register/signup-email.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/signup-email.tsx@@ -18,7 +18,7 @@ export const SignUpEmail = () => {const {register,handleSubmit,- formState: { errors },+ formState: { errors, isValid },getValues,} = useForm<SignUpProps>({resolver: zodResolver(signUpSchema),@@ -59,7 +59,7 @@ export const SignUpEmail = () => {<Buttontype="submit"text={isExecuting ? "Submitting..." : "Sign Up"}- disabled={isExecuting}+ disabled={isExecuting || !isValid}loading={isExecuting}/></div>