Skip to content

Commit 255fcfb

Browse files
committed
chore: added missing useAlert hook
1 parent 47b316f commit 255fcfb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/uikit-react-native/src/domain/groupChannelSettings/module/moduleContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { createContext, useCallback } from 'react';
22

33
import { useActiveGroupChannel, useChannelHandler } from '@sendbird/uikit-chat-hooks';
4-
import { useActionMenu, useBottomSheet, usePrompt, useToast } from '@sendbird/uikit-react-native-foundation';
4+
import { useActionMenu, useAlert, useBottomSheet, usePrompt, useToast } from '@sendbird/uikit-react-native-foundation';
55
import {
66
NOOP,
77
SendbirdGroupChannel,
@@ -34,6 +34,7 @@ export const GroupChannelSettingsContextsProvider: GroupChannelSettingsModule['P
3434
const { STRINGS } = useLocalization();
3535
const { sdk } = useSendbirdChat();
3636
const { fileService } = usePlatformService();
37+
const { alert } = useAlert();
3738

3839
const { activeChannel, setActiveChannel } = useActiveGroupChannel(sdk, channel);
3940

sample/src/screens/uikit-app/GroupChannelTabs/SettingsScreen.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
Switch,
1414
Text,
1515
useActionMenu,
16+
useAlert,
1617
usePrompt,
1718
useToast,
1819
useUIKitTheme,
@@ -39,6 +40,7 @@ const SettingsScreen = () => {
3940
const { openSheet } = useBottomSheet();
4041
const { openPrompt } = usePrompt();
4142
const { openMenu } = useActionMenu();
43+
const { alert } = useAlert();
4244

4345
const onChangeNickname = () => {
4446
openPrompt({

0 commit comments

Comments
 (0)