diff --git a/app/components/UI/ProfileSyncing/ProfileSyncing.tsx b/app/components/UI/ProfileSyncing/ProfileSyncing.tsx index 3631c6d1bcb..7e48219918c 100644 --- a/app/components/UI/ProfileSyncing/ProfileSyncing.tsx +++ b/app/components/UI/ProfileSyncing/ProfileSyncing.tsx @@ -12,8 +12,9 @@ import styles from './ProfileSyncing.styles'; import { ProfileSyncingComponentProps } from './ProfileSyncing.types'; import AppConstants from '../../../core/AppConstants'; import { useProfileSyncing } from '../../../util/notifications/hooks/useProfileSyncing'; +import { isNotificationsFeatureEnabled } from '../../../util/notifications'; -export default function ProfileSyncingComponent({ +function ProfileSyncingComponent({ handleSwitchToggle, isBasicFunctionalityEnabled, isProfileSyncingEnabled, @@ -62,3 +63,13 @@ export default function ProfileSyncingComponent({ ); } + +export default function ProfileSyncingContainer( + props: Readonly, +) { + if (!isNotificationsFeatureEnabled()) { + return null; + } + + return ; +} diff --git a/app/components/UI/ProfileSyncing/__snapshots__/ProfileSyncing.test.tsx.snap b/app/components/UI/ProfileSyncing/__snapshots__/ProfileSyncing.test.tsx.snap index 6d3963c6cdf..d8edbb0060d 100644 --- a/app/components/UI/ProfileSyncing/__snapshots__/ProfileSyncing.test.tsx.snap +++ b/app/components/UI/ProfileSyncing/__snapshots__/ProfileSyncing.test.tsx.snap @@ -1,92 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ProfileSyncing should render correctly 1`] = ` - - - - Profile Sync - - - - - Creates a profile that MetaMask uses to sync some settings among your devices. This is required to get notifications. - - Learn how we protect your privacy - - - -`; +exports[`ProfileSyncing should render correctly 1`] = `null`; diff --git a/app/components/Views/OnboardingSuccess/DefaultSettings/__snapshots__/index.test.js.snap b/app/components/Views/OnboardingSuccess/DefaultSettings/__snapshots__/index.test.js.snap index ca66daf9c8a..485c0749e0b 100644 --- a/app/components/Views/OnboardingSuccess/DefaultSettings/__snapshots__/index.test.js.snap +++ b/app/components/Views/OnboardingSuccess/DefaultSettings/__snapshots__/index.test.js.snap @@ -131,94 +131,6 @@ exports[`DefaultSettings should render correctly 1`] = ` to learn more. - - - - Profile Sync - - - - - Creates a profile that MetaMask uses to sync some settings among your devices. This is required to get notifications. - - Learn how we protect your privacy - - - - - - - Profile Sync - - - - - Creates a profile that MetaMask uses to sync some settings among your devices. This is required to get notifications. - - Learn how we protect your privacy - - -