From 85570d2e9e94b4dbd3261dec55ee992b5191e8c9 Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Mon, 10 Jul 2023 17:30:15 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20google=20(#587)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit added login first --- .../login/components/GoogleLogin/index.tsx | 2 +- frontend/app/(home)/Hero.tsx | 2 +- .../NavItems/components/AuthButtons.tsx | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/frontend/app/(auth)/login/components/GoogleLogin/index.tsx b/frontend/app/(auth)/login/components/GoogleLogin/index.tsx index 90586de71..4009efbf9 100644 --- a/frontend/app/(auth)/login/components/GoogleLogin/index.tsx +++ b/frontend/app/(auth)/login/components/GoogleLogin/index.tsx @@ -10,7 +10,7 @@ export const GoogleLoginButton = () => { diff --git a/frontend/lib/components/NavBar/components/NavItems/components/AuthButtons.tsx b/frontend/lib/components/NavBar/components/NavItems/components/AuthButtons.tsx index 76ee6362b..befd06b24 100644 --- a/frontend/lib/components/NavBar/components/NavItems/components/AuthButtons.tsx +++ b/frontend/lib/components/NavBar/components/NavItems/components/AuthButtons.tsx @@ -13,10 +13,19 @@ export const AuthButtons = (): JSX.Element => { ); } + else if (pathname === "/login") { + return ( + + + + ) + } else { + return ( + + + + ); + } - return ( - - - - ); + };