From d45ab66865af968f71c841677c642a2ef4925fd8 Mon Sep 17 00:00:00 2001
From: Diwash
Date: Fri, 29 Sep 2023 09:16:56 +0545
Subject: [PATCH] Fixed: Register page shows Button with Sign In instead of
Sign Up
---
app/(auth)/register/page.tsx | 2 +-
components/user-auth-form.tsx | 14 +++++++++++---
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/app/(auth)/register/page.tsx b/app/(auth)/register/page.tsx
index 1b61ff0..1151562 100644
--- a/app/(auth)/register/page.tsx
+++ b/app/(auth)/register/page.tsx
@@ -34,7 +34,7 @@ export default function RegisterPage() {
Enter your email below to create your account
-
+
By clicking continue, you agree to our{" "}
{}
+interface UserAuthFormProps extends React.HTMLAttributes {
+ option?: string
+}
type FormData = z.infer
-export function UserAuthForm({ className, ...props }: UserAuthFormProps) {
+export function UserAuthForm({
+ className,
+ option,
+ ...props
+}: UserAuthFormProps) {
const {
register,
handleSubmit,
@@ -84,7 +90,9 @@ export function UserAuthForm({ className, ...props }: UserAuthFormProps) {
{isLoading && (
)}
- Sign In with Email
+ {option === "register"
+ ? "Sign Up with Email"
+ : "Sign In with Email"}