Skip to content

Commit e8387cc

Browse files
committed
chore: update context name
1 parent af9a80e commit e8387cc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/uikit-react-native/src/components/ReactionBottomSheets/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type React from 'react';
22

33
import type { LocalizationContext } from '../../contexts/LocalizationCtx';
4-
import type { ProfileCardContext } from '../../contexts/ProfileCardCtx';
54
import type { ReactionContext } from '../../contexts/ReactionCtx';
65
import type { SendbirdChatContext } from '../../contexts/SendbirdChatCtx';
6+
import type { UserProfileContext } from '../../contexts/UserProfileCtx';
77
import ReactionList from './ReactionListBottomSheet';
88
import UserList from './ReactionUserListBottomSheet';
99

@@ -15,7 +15,7 @@ export type ReactionBottomSheetProps = {
1515
chatCtx: GetFromContext<typeof SendbirdChatContext>;
1616
reactionCtx: GetFromContext<typeof ReactionContext>;
1717
localizationCtx: GetFromContext<typeof LocalizationContext>;
18-
userProfileCtx: GetFromContext<typeof ProfileCardContext>;
18+
userProfileCtx: GetFromContext<typeof UserProfileContext>;
1919
};
2020

2121
export const ReactionBottomSheets = {

packages/uikit-react-native/src/contexts/ReactionCtx.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { NOOP } from '@sendbird/uikit-utils';
55

66
import { ReactionBottomSheets } from '../components/ReactionBottomSheets';
77
import { LocalizationContext } from '../contexts/LocalizationCtx';
8-
import { ProfileCardContext } from '../contexts/ProfileCardCtx';
98
import { SendbirdChatContext } from '../contexts/SendbirdChatCtx';
9+
import { UserProfileContext } from '../contexts/UserProfileCtx';
1010

1111
type State = {
1212
message?: SendbirdBaseMessage;
@@ -25,10 +25,10 @@ export const ReactionContext = React.createContext<ReactionContextType | null>(n
2525
export const ReactionProvider = ({ children }: Props) => {
2626
const chatCtx = useContext(SendbirdChatContext);
2727
const localizationCtx = useContext(LocalizationContext);
28-
const userProfileCtx = useContext(ProfileCardContext);
28+
const userProfileCtx = useContext(UserProfileContext);
2929
if (!chatCtx) throw new Error('SendbirdChatContext is not provided');
3030
if (!localizationCtx) throw new Error('LocalizationContext is not provided');
31-
if (!userProfileCtx) throw new Error('ProfileCardContext is not provided');
31+
if (!userProfileCtx) throw new Error('UserProfileContext is not provided');
3232

3333
const [state, setState] = useReducer((prev: State, next: State) => ({ ...prev, ...next }), {});
3434
const [reactionListVisible, setReactionListVisible] = useState(false);

0 commit comments

Comments
 (0)