Skip to content

Commit d72e778

Browse files
committed
update Chat types
1 parent 4066b4e commit d72e778

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/components/Chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const Chat = <
145145
if (!translators.t) return null;
146146

147147
return (
148-
<ChatProvider<At, Ch, Co, Ev, Me, Re, Us>
148+
<ChatProvider
149149
value={{
150150
channel,
151151
client,

src/components/Chat/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './Chat';
2+
export * from './hooks/useChat';

src/context/ChatContext.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ export type ChatContextValue<
2525
Us extends DefaultUserType<Us> = DefaultUserType
2626
> = {
2727
client: StreamChat<At, Ch, Co, Ev, Me, Re, Us>;
28-
theme: Theme;
29-
channel?: Channel<At, Ch, Co, Ev, Me, Re, Us>;
30-
closeMobileNav?: () => void;
31-
mutes?: Mute<Us>[];
32-
navOpen?: boolean;
33-
openMobileNav?: () => void;
34-
setActiveChannel?: (
28+
closeMobileNav: () => void;
29+
mutes: Mute<Us>[];
30+
openMobileNav: () => void;
31+
setActiveChannel: (
3532
newChannel?: Channel<At, Ch, Co, Ev, Me, Re, Us>,
3633
watchers?: { limit?: number; offset?: number },
3734
event?: React.SyntheticEvent,
3835
) => void;
39-
useImageFlagEmojisOnWindows?: boolean;
36+
theme: Theme;
37+
useImageFlagEmojisOnWindows: boolean;
38+
channel?: Channel<At, Ch, Co, Ev, Me, Re, Us>;
39+
navOpen?: boolean;
4040
};
4141

4242
export const ChatContext = React.createContext({} as ChatContextValue);

0 commit comments

Comments
 (0)