File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ function ActiveInbox(props: InboxProps & { session: Talk.Session }) {
5050 style,
5151 className,
5252 loadingComponent,
53+ children,
5354 ...optionsAndEvents
5455 } = props ;
5556
@@ -77,6 +78,7 @@ function ActiveInbox(props: InboxProps & { session: Talk.Session }) {
7778 style = { style }
7879 loadingComponent = { loadingComponent }
7980 handlers = { events }
81+ children = { children }
8082 />
8183 ) ;
8284}
Original file line number Diff line number Diff line change 88import { useSetter , useConversation , useUIBox , useMountBox } from "../hooks" ;
99import { EventListeners } from "../EventListeners" ;
1010import { UIBoxProps } from "../types" ;
11+ import { BoxContext } from "../MountedBox" ;
1112
1213type PopupProps = UIBoxProps < Talk . Popup > &
1314 Talk . PopupOptions & {
@@ -38,6 +39,7 @@ function ActivePopup(props: PopupProps & { session: Talk.Session }) {
3839 conversationId,
3940 syncConversation,
4041 popupRef,
42+ children,
4143 ...optionsAndEvents
4244 } = props ;
4345
@@ -52,5 +54,10 @@ function ActivePopup(props: PopupProps & { session: Talk.Session }) {
5254 useConversation ( session , box , syncConversation , conversationId ) ;
5355 useMountBox ( box , undefined ) ;
5456
55- return < EventListeners target = { box } handlers = { events } /> ;
57+ return (
58+ < BoxContext . Provider value = { box } >
59+ { children }
60+ < EventListeners target = { box } handlers = { events } />
61+ </ BoxContext . Provider >
62+ ) ;
5663}
You can’t perform that action at this time.
0 commit comments