Skip to content

Commit ed1de3c

Browse files
committed
chore: lint fix
1 parent 96bd43d commit ed1de3c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/uikit-react-native/src/domain/groupChannelSettings/component/GroupChannelSettingsMenu.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { View } from 'react-native';
44
import { PushTriggerOption } from '@sendbird/chat';
55
import type { MenuBarProps } from '@sendbird/uikit-react-native-foundation';
66
import { 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

99
import { useLocalization, useSendbirdChat } from '../../../hooks/useContext';
1010
import { 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

Comments
 (0)