From 716642142f663596be55e53c98c6e1087cc0ef7e Mon Sep 17 00:00:00 2001 From: M1000fr Date: Thu, 12 Dec 2024 16:56:48 +0100 Subject: [PATCH] refactor: Update login page and layout styles --- src/app/auth/login/page.tsx | 22 ++++++++++------------ src/app/layout.tsx | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/app/auth/login/page.tsx b/src/app/auth/login/page.tsx index d6af802..54ef1ab 100644 --- a/src/app/auth/login/page.tsx +++ b/src/app/auth/login/page.tsx @@ -3,10 +3,10 @@ import { authOptions } from "@/authOptions"; import { signIn } from "next-auth/react"; const LoginPage = () => { - const providers = authOptions.providers; + const provider = authOptions.providers[0]; return ( -
+
@@ -26,16 +26,14 @@ const LoginPage = () => {

Via

    - {providers.map((provider) => ( -
  • - -
  • - ))} +
  • + +
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8b0e731..a466eed 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -8,7 +8,7 @@ export default function RootLayout({ }) { return ( - + {children}