From 6f448cfd91b9a1b3eb788259091290aa0bbba496 Mon Sep 17 00:00:00 2001 From: warmachine028 <75939390+warmachine028@users.noreply.github.com> Date: Thu, 5 Sep 2024 03:36:15 +0530 Subject: [PATCH] fix: issue #26 --- client/src/app/(auth)/login/page.tsx | 4 ++-- client/src/app/(auth)/signup/page.tsx | 4 ++-- client/src/app/layout.tsx | 1 - client/src/components/forms/SignUp.tsx | 11 ++++++++++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/client/src/app/(auth)/login/page.tsx b/client/src/app/(auth)/login/page.tsx index 2ca417a..af405b4 100644 --- a/client/src/app/(auth)/login/page.tsx +++ b/client/src/app/(auth)/login/page.tsx @@ -8,14 +8,14 @@ export const metadata: Metadata = { title: 'Log In' } const LogIn = () => { return ( -
+
log-in

Welcome Back!

-
+
Don't have an account?{' '} diff --git a/client/src/app/(auth)/signup/page.tsx b/client/src/app/(auth)/signup/page.tsx index aa44b17..33dcf05 100644 --- a/client/src/app/(auth)/signup/page.tsx +++ b/client/src/app/(auth)/signup/page.tsx @@ -8,7 +8,7 @@ export const metadata: Metadata = { title: 'Sign Up' } const SignUp = () => { return ( -
+

Join Us Now

@@ -16,7 +16,7 @@ const SignUp = () => { A place where even programmers can find a frend

-
+
Already have an account?{' '} diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx index 731440e..11ae62d 100644 --- a/client/src/app/layout.tsx +++ b/client/src/app/layout.tsx @@ -23,7 +23,6 @@ export const metadata: Metadata = { } // TODO: shadcn-ui/toast -// TODO: fix issue https://github.com/warmachine028/next-book/issues/26 const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => { return ( //? FIX: https://github.com/shadcn-ui/ui/issues/1906#issuecomment-1807426212 diff --git a/client/src/components/forms/SignUp.tsx b/client/src/components/forms/SignUp.tsx index 17d4fe2..fd43c6b 100644 --- a/client/src/components/forms/SignUp.tsx +++ b/client/src/components/forms/SignUp.tsx @@ -39,7 +39,13 @@ const SignUpForm = () => { Username - + {useFormState().errors.userName ? ( @@ -57,6 +63,7 @@ const SignUpForm = () => { Email { Password