@@ -4,7 +4,7 @@ import { View } from 'react-native';
44import { PushTriggerOption } from '@sendbird/chat' ;
55import type { MenuBarProps } from '@sendbird/uikit-react-native-foundation' ;
66import { Icon , MenuBar , Switch , useUIKitTheme } from '@sendbird/uikit-react-native-foundation' ;
7- import { Logger } from '@sendbird/uikit-utils' ;
7+ import { Logger , conditionChaining } from '@sendbird/uikit-utils' ;
88
99import { useLocalization , useSendbirdChat } from '../../../hooks/useContext' ;
1010import { GroupChannelSettingsContexts } from '../module/moduleContext' ;
@@ -71,10 +71,12 @@ const GroupChannelSettingsMenu = ({
7171 name : STRINGS . GROUP_CHANNEL_SETTINGS . MENU_NOTIFICATION ,
7272 onPress : onPressNotificationMenu ,
7373 actionLabel : getNotificationsLabel ( channel . myPushTriggerOption ) ,
74- actionItem : features . mentionEnabled ? (
75- < Icon icon = { 'chevron-right' } color = { colors . onBackground01 } />
76- ) : (
77- < Switch value = { channel . myPushTriggerOption !== 'off' } onChangeValue = { toggleNotification } />
74+ actionItem : conditionChaining (
75+ [ features . mentionEnabled ] ,
76+ [
77+ < Icon icon = { 'chevron-right' } color = { colors . onBackground01 } /> ,
78+ < Switch value = { channel . myPushTriggerOption !== 'off' } onChangeValue = { toggleNotification } /> ,
79+ ] ,
7880 ) ,
7981 } ,
8082 {
0 commit comments