+3
-2
@@ -5,7 +5,7 @@ import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
|
||||
import { ApolloError } from '@apollo/client';
|
||||
import styled from '@emotion/styled';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { useRecoilState, useRecoilValue } from 'recoil';
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { capitalize } from 'twenty-shared/utils';
|
||||
import { IconGoogle, IconMicrosoft, IconPassword } from 'twenty-ui/display';
|
||||
import { Card } from 'twenty-ui/layout';
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
type AuthProviders,
|
||||
useUpdateWorkspaceMutation,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { useRecoilValueV2 } from '@/ui/utilities/state/jotai/hooks/useRecoilValueV2';
|
||||
|
||||
const StyledSettingsSecurityOptionsList = styled.div`
|
||||
display: flex;
|
||||
@@ -24,7 +25,7 @@ export const SettingsSecurityAuthBypassOptionsList = () => {
|
||||
const { t } = useLingui();
|
||||
|
||||
const { enqueueErrorSnackBar } = useSnackBar();
|
||||
const authProviders = useRecoilValue(authProvidersState);
|
||||
const authProviders = useRecoilValueV2(authProvidersState);
|
||||
|
||||
const [currentWorkspace, setCurrentWorkspace] = useRecoilState(
|
||||
currentWorkspaceState,
|
||||
|
||||
+2
-1
@@ -22,6 +22,7 @@ import {
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
import { Toggle2FA } from './Toggle2FA';
|
||||
import { useRecoilValueV2 } from '@/ui/utilities/state/jotai/hooks/useRecoilValueV2';
|
||||
|
||||
const StyledSettingsSecurityOptionsList = styled.div`
|
||||
display: flex;
|
||||
@@ -34,7 +35,7 @@ export const SettingsSecurityAuthProvidersOptionsList = () => {
|
||||
|
||||
const { enqueueErrorSnackBar } = useSnackBar();
|
||||
const SSOIdentitiesProviders = useRecoilValue(SSOIdentitiesProvidersState);
|
||||
const authProviders = useRecoilValue(authProvidersState);
|
||||
const authProviders = useRecoilValueV2(authProvidersState);
|
||||
|
||||
const [currentWorkspace, setCurrentWorkspace] = useRecoilState(
|
||||
currentWorkspaceState,
|
||||
|
||||
Reference in New Issue
Block a user