@@ -10,27 +10,23 @@ import {
1010 TextVariant ,
1111} from '@metamask/design-system-react-native' ;
1212import { useStyles } from '../../../../component-library/hooks' ;
13- import AppConstants from '../../../../core/AppConstants' ;
1413import { useMainNotificationToggle } from './MainNotificationToggle.hooks' ;
1514import styleSheet from './NotificationsSettings.styles' ;
1615import { NotificationSettingsViewSelectorsIDs } from './NotificationSettingsView.testIds' ;
1716
1817export const MAIN_NOTIFICATION_TOGGLE_TEST_ID = 'main-notification-toggle' ;
19- export const MAIN_NOTIFICATION_TOGGLE_LEARN_MORE_TEST_ID =
20- 'main-notification-toggle--learn-more-button' ;
2118
2219export const MainNotificationToggle = ( ) => {
2320 const theme = useTheme ( ) ;
2421 const { styles } = useStyles ( styleSheet , { theme } ) ;
2522
2623 const { onToggle, value } = useMainNotificationToggle ( ) ;
2724
28- const goToLearnMore = useCallback ( ( ) => {
29- Linking . openURL ( AppConstants . URLS . PROFILE_SYNC ) ;
30- } , [ ] ) ;
31-
3225 return (
3326 < >
27+ < Text color = { TextColor . TextAlternative } variant = { TextVariant . BodySm } >
28+ { strings ( 'app_settings.allow_notifications_desc' ) }
29+ </ Text >
3430 < View
3531 style = { styles . switchElement }
3632 testID = { MAIN_NOTIFICATION_TOGGLE_TEST_ID }
@@ -55,19 +51,6 @@ export const MainNotificationToggle = () => {
5551 testID = { NotificationSettingsViewSelectorsIDs . NOTIFICATIONS_TOGGLE }
5652 />
5753 </ View >
58- < View style = { styles . setting } >
59- < Text color = { TextColor . TextAlternative } variant = { TextVariant . BodySm } >
60- { strings ( 'app_settings.allow_notifications_desc' ) } { ' ' }
61- < Text
62- variant = { TextVariant . BodySm }
63- color = { TextColor . InfoDefault }
64- onPress = { goToLearnMore }
65- testID = { MAIN_NOTIFICATION_TOGGLE_LEARN_MORE_TEST_ID }
66- >
67- { strings ( 'notifications.activation_card.learn_more' ) }
68- </ Text >
69- </ Text >
70- </ View >
7154 </ >
7255 ) ;
7356} ;
0 commit comments