From ee0282bcc8a9f5af2bc693c4e82e61c69efc936c Mon Sep 17 00:00:00 2001 From: Antoine Moreaux Date: Mon, 23 Dec 2024 13:17:00 +0100 Subject: [PATCH] refacto(auth): Simplify workspace lookup and cleanup UI logic (#9160) Streamlined workspace selection by defaulting to the first available workspace. Adjusted conditional rendering for a separator between authentication providers, improving clarity and reducing redundancy. Minor formatting changes were also applied for consistency. Close #9094 --- .../auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx index ef4950f31..737ac7aa7 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx @@ -107,9 +107,10 @@ export const SignInUpGlobalScopeForm = () => { <> {authProviders.google && } - {authProviders.microsoft && } - + {(authProviders.google || authProviders.microsoft) && ( + + )} {/* eslint-disable-next-line react/jsx-props-no-spreading */}