Skip to content

Commit 9b6d0c5

Browse files
committed
fix: add TS single generic in UserInfoOverlay.tsx of SampleApp
1 parent 3d0cbb5 commit 9b6d0c5

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

examples/SampleApp/src/components/UserInfoOverlay.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,7 @@ import { useAppOverlayContext } from '../context/AppOverlayContext';
3535
import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext';
3636
import { useUserInfoOverlayContext } from '../context/UserInfoOverlayContext';
3737

38-
import type {
39-
LocalAttachmentType,
40-
LocalChannelType,
41-
LocalCommandType,
42-
LocalEventType,
43-
LocalMessageType,
44-
LocalReactionType,
45-
LocalUserType,
46-
} from '../types';
38+
import type { StreamChatGenerics } from '../types';
4739
import { useAppContext } from '../context/AppContext';
4840
import { UserResponse } from 'stream-chat';
4941

@@ -116,15 +108,7 @@ export const UserInfoOverlay = (props: UserInfoOverlayProps) => {
116108
const { overlayOpacity, visible } = props;
117109
const { chatClient } = useAppContext();
118110
const { overlay, setOverlay } = useAppOverlayContext();
119-
const { client } = useChatContext<
120-
LocalAttachmentType,
121-
LocalChannelType,
122-
LocalCommandType,
123-
LocalEventType,
124-
LocalMessageType,
125-
LocalReactionType,
126-
LocalUserType
127-
>();
111+
const { client } = useChatContext<StreamChatGenerics>();
128112
const { setData } = useBottomSheetOverlayContext();
129113
const { data, reset } = useUserInfoOverlayContext();
130114

0 commit comments

Comments
 (0)