Skip to content

Commit

Permalink
Fix: Remove horizontal line on login page when no SSO providers are s…
Browse files Browse the repository at this point in the history
…elected
  • Loading branch information
muraliSingh7 committed Dec 18, 2024
1 parent 7375ab8 commit 096c193
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SignInUpStep } from '@/auth/states/signInUpStepState';
import { workspaceAuthProvidersState } from '@/workspace/states/workspaceAuthProvidersState';
import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { ActionLink, HorizontalSeparator } from 'twenty-ui';
import { ActionLink } from 'twenty-ui';

const StyledContentContainer = styled.div`
margin-bottom: ${({ theme }) => theme.spacing(8)};
Expand All @@ -32,14 +32,7 @@ export const SignInUpWorkspaceScopeForm = () => {
{workspaceAuthProviders.microsoft && <SignInUpWithMicrosoft />}

{workspaceAuthProviders.sso.length > 0 && <SignInUpWithSSO />}

{(workspaceAuthProviders.google ||
workspaceAuthProviders.microsoft ||
workspaceAuthProviders.sso.length > 0) &&
workspaceAuthProviders.password ? (
<HorizontalSeparator visible />
) : null}


{workspaceAuthProviders.password && <SignInUpWithCredentials />}
</StyledContentContainer>
{signInUpStep === SignInUpStep.Password && (
Expand Down

0 comments on commit 096c193

Please sign in to comment.