File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
examples/SampleApp/src/components Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,7 @@ import { useAppOverlayContext } from '../context/AppOverlayContext';
3535import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext' ;
3636import { 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' ;
4739import { useAppContext } from '../context/AppContext' ;
4840import { 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
You can’t perform that action at this time.
0 commit comments