From 4f7d25dc99977eeab28845f29250c3852828391d Mon Sep 17 00:00:00 2001 From: Antoine Moreaux Date: Fri, 20 Dec 2024 10:15:36 +0100 Subject: [PATCH] [refactor](auth): Simplify workspace lookup and cleanup UI logic 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. --- .../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 c38e45ebedb7..a3017c3e67fb 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 */}