From 080ed0457f33228849d1eed55491a0eb69ce4844 Mon Sep 17 00:00:00 2001 From: Chibuzo Ekwue Date: Mon, 29 Jul 2024 16:39:26 +0100 Subject: [PATCH 1/6] add social login team anchor --- src/app/(auth-routes)/sign-up/page.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/(auth-routes)/sign-up/page.tsx b/src/app/(auth-routes)/sign-up/page.tsx index e0865f278..d6cc1e7a9 100644 --- a/src/app/(auth-routes)/sign-up/page.tsx +++ b/src/app/(auth-routes)/sign-up/page.tsx @@ -22,17 +22,19 @@ const page = () => { Create an account to get started with us.

- + + +
- + + +
- +
- + - +
- - + + + + + + + } + > + Sign up with Google + + + + + + + + + + + + } + > + Sign up with Facebook +
@@ -157,9 +229,14 @@ const SignUp = () => { )} /> - + { ))} - +

Would you rather use email and password? diff --git a/src/utils/getApiUrl.ts b/src/utils/getApiUrl.ts new file mode 100644 index 000000000..2579b1996 --- /dev/null +++ b/src/utils/getApiUrl.ts @@ -0,0 +1,11 @@ +"use server"; + +export const getApiUrl = async (): Promise => { + const apiUrl = process.env.API_URL; + + if (!apiUrl) { + throw new Error("API_URL environment variable is not defined"); + } + + return apiUrl; +}; From 9eaa0fad084f815a8ef921f42ecfe95f899a7407 Mon Sep 17 00:00:00 2001 From: Chibuzo Ekwue Date: Mon, 29 Jul 2024 20:46:13 +0100 Subject: [PATCH 6/6] fixed the lint errors --- src/app/(auth-routes)/login/page.tsx | 25 ++++++++++++------------- src/app/(auth-routes)/register/page.tsx | 5 ----- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/app/(auth-routes)/login/page.tsx b/src/app/(auth-routes)/login/page.tsx index a4ad95282..6a8bebf22 100644 --- a/src/app/(auth-routes)/login/page.tsx +++ b/src/app/(auth-routes)/login/page.tsx @@ -100,18 +100,17 @@ const LoginPage = () => {

- - - + +
diff --git a/src/app/(auth-routes)/register/page.tsx b/src/app/(auth-routes)/register/page.tsx index f0013bcc6..8d459c7fd 100644 --- a/src/app/(auth-routes)/register/page.tsx +++ b/src/app/(auth-routes)/register/page.tsx @@ -128,11 +128,6 @@ const SignUp = () => {