Skip to content

Commit

Permalink
[refactor](auth): Simplify workspace lookup and cleanup UI logic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AMoreaux committed Dec 20, 2024
1 parent 94136d9 commit 09fa999
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const SignInUpGlobalScopeForm = () => {
<>
<StyledContentContainer>
{authProviders.google && <SignInUpWithGoogle />}

{authProviders.microsoft && <SignInUpWithMicrosoft />}
<HorizontalSeparator visible />
{authProviders.google ||
(authProviders.microsoft && <HorizontalSeparator visible />)}
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<FormProvider {...form}>
<StyledForm onSubmit={form.handleSubmit(handleSubmit)}>
Expand Down

0 comments on commit 09fa999

Please sign in to comment.