From 8df3214e848db3c64eb414ba1cfa9ca704ae8d50 Mon Sep 17 00:00:00 2001 From: Guillim Date: Mon, 27 Jan 2025 11:04:19 +0100 Subject: [PATCH] decoupling isMicrosoftAuthEnabled and IsMicrosoftSyncEnabled (which has no reason to be used here) (#9854) ### what decoupling auth and email synchro ### why IsMicrosoftSyncEnabled (which has no reason to be used here) since we now allow microsoft as a auth provider --- .../components/SettingsAccountsListEmptyStateCard.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListEmptyStateCard.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListEmptyStateCard.tsx index a3c7ea284..723098218 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListEmptyStateCard.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListEmptyStateCard.tsx @@ -1,6 +1,5 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { useTriggerApisOAuth } from '@/settings/accounts/hooks/useTriggerApiOAuth'; -import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { useRecoilValue } from 'recoil'; @@ -12,7 +11,6 @@ import { IconGoogle, IconMicrosoft, } from 'twenty-ui'; -import { FeatureFlagKey } from '~/generated/graphql'; const StyledHeader = styled(CardHeader)` align-items: center; @@ -35,9 +33,6 @@ export const SettingsAccountsListEmptyStateCard = ({ }: SettingsAccountsListEmptyStateCardProps) => { const { triggerApisOAuth } = useTriggerApisOAuth(); const currentWorkspace = useRecoilValue(currentWorkspaceState); - const isMicrosoftSyncEnabled = useIsFeatureEnabled( - FeatureFlagKey.IsMicrosoftSyncEnabled, - ); const { t } = useLingui(); @@ -53,7 +48,7 @@ export const SettingsAccountsListEmptyStateCard = ({ onClick={() => triggerApisOAuth('google')} /> )} - {isMicrosoftSyncEnabled && currentWorkspace?.isMicrosoftAuthEnabled && ( + {currentWorkspace?.isMicrosoftAuthEnabled && (