## Summary Add support for multi-workspace feature and adjust configurations and states accordingly. - Introduced new state isMultiWorkspaceEnabledState. - Updated ClientConfigProviderEffect component to handle multi-workspace. - Modified GraphQL schema and queries to include multi-workspace related configurations. - Adjusted server environment variables and their respective documentation to support multi-workspace toggle. - Updated server-side logic to handle new multi-workspace configurations and conditions.
28 lines
877 B
TypeScript
28 lines
877 B
TypeScript
import { IconMicrosoft, MainButton, HorizontalSeparator } from 'twenty-ui';
|
|
import {
|
|
SignInUpStep,
|
|
signInUpStepState,
|
|
} from '@/auth/states/signInUpStepState';
|
|
import { useTheme } from '@emotion/react';
|
|
import { useSignInWithMicrosoft } from '@/auth/sign-in-up/hooks/useSignInWithMicrosoft';
|
|
import { useRecoilValue } from 'recoil';
|
|
|
|
export const SignInUpWithMicrosoft = () => {
|
|
const theme = useTheme();
|
|
const signInUpStep = useRecoilValue(signInUpStepState);
|
|
const { signInWithMicrosoft } = useSignInWithMicrosoft();
|
|
|
|
return (
|
|
<>
|
|
<MainButton
|
|
Icon={() => <IconMicrosoft size={theme.icon.size.md} />}
|
|
title="Continue with Microsoft"
|
|
onClick={signInWithMicrosoft}
|
|
variant={signInUpStep === SignInUpStep.Init ? undefined : 'secondary'}
|
|
fullWidth
|
|
/>
|
|
<HorizontalSeparator visible={false} />
|
|
</>
|
|
);
|
|
};
|