From 4c2305c1e8b75a54f370321187661861b0447034 Mon Sep 17 00:00:00 2001 From: Fullstack Mechanic Date: Thu, 25 Jul 2024 13:23:23 +0100 Subject: [PATCH 1/5] lint and test issues fixs for auth --- src/app/(auth-routes)/register/page.tsx | 6 ++---- src/components/authproviders/AuthProvider.tsx | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/app/(auth-routes)/register/page.tsx b/src/app/(auth-routes)/register/page.tsx index 9d5e37f1a..a721b2680 100644 --- a/src/app/(auth-routes)/register/page.tsx +++ b/src/app/(auth-routes)/register/page.tsx @@ -23,8 +23,6 @@ import { InputOTPGroup, InputOTPSlot, } from "~/components/ui/input-otp"; -import Facebook from "../../../../public/images/facebook.svg"; -import Google from "../../../../public/images/google.svg"; const formSchema = z.object({ fullname: z.string().min(2, { @@ -55,8 +53,8 @@ const SignUp = () => {

- - + +
diff --git a/src/components/authproviders/AuthProvider.tsx b/src/components/authproviders/AuthProvider.tsx index 3f4c86743..dcaa74598 100644 --- a/src/components/authproviders/AuthProvider.tsx +++ b/src/components/authproviders/AuthProvider.tsx @@ -1,10 +1,7 @@ -import Image from "next/image"; - -function AuthProvider({ title, icon }: { title: string; icon: string }) { +function AuthProvider({ title }: { title: string }) { return ( <> From 38c084fca0e71cb855e7ea242f8f4199a776daf4 Mon Sep 17 00:00:00 2001 From: Fullstack Mechanic Date: Thu, 25 Jul 2024 13:56:35 +0100 Subject: [PATCH 2/5] lint and test issues fixs for auth --- src/app/(auth-routes)/register/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(auth-routes)/register/page.tsx b/src/app/(auth-routes)/register/page.tsx index a721b2680..bc6d45c81 100644 --- a/src/app/(auth-routes)/register/page.tsx +++ b/src/app/(auth-routes)/register/page.tsx @@ -112,7 +112,7 @@ const SignUp = () => { )} />
-
+
Date: Thu, 25 Jul 2024 19:50:22 +0100 Subject: [PATCH 5/5] fix footer --- src/app/(auth-routes)/register/page.tsx | 10 +++------- src/components/layouts/footer/index.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/app/(auth-routes)/register/page.tsx b/src/app/(auth-routes)/register/page.tsx index 62a12c6ac..0fc9dabb5 100644 --- a/src/app/(auth-routes)/register/page.tsx +++ b/src/app/(auth-routes)/register/page.tsx @@ -1,10 +1,10 @@ "use client"; import { zodResolver } from "@hookform/resolvers/zod"; -import Image from "next/image"; import { DialogContent, DialogTitle } from "@radix-ui/react-dialog"; +import Image from "next/image"; import Link from "next/link"; -import React, { useState } from "react"; +import { useState } from "react"; import { useForm } from "react-hook-form"; import { z } from "zod"; @@ -39,10 +39,6 @@ const formSchema = z.object({ type FormData = z.infer; -const onSubmit = (event: React.FormEvent) => { - event.preventDefault(); -}; - const SignUp = () => { const form = useForm({ resolver: zodResolver(formSchema), @@ -97,7 +93,7 @@ const SignUp = () => { Sign in with Google
-
+
{
-
+
Boiler plate

@@ -83,13 +83,13 @@ const Footer = () => {

-
+
Sign Up For Newsletter
Subscibe @@ -122,7 +122,7 @@ const Footer = () => { ); })}
-
+
Sign Up For Newsletter