Merge pull request #3632 from overleaf/msm-navbar-collaborator-widget
[ReactNavToolbar] Collaborators widget GitOrigin-RevId: 65f2484962591103f02eb7624a974d0806b1abf0
This commit is contained in:
@@ -9,7 +9,9 @@ export function ContextRoot({
|
||||
children,
|
||||
editorLoading,
|
||||
chatIsOpenAngular,
|
||||
setChatIsOpenAngular
|
||||
setChatIsOpenAngular,
|
||||
openDoc,
|
||||
onlineUsersArray
|
||||
}) {
|
||||
return (
|
||||
<ApplicationProvider>
|
||||
@@ -17,6 +19,8 @@ export function ContextRoot({
|
||||
loading={editorLoading}
|
||||
chatIsOpenAngular={chatIsOpenAngular}
|
||||
setChatIsOpenAngular={setChatIsOpenAngular}
|
||||
openDoc={openDoc}
|
||||
onlineUsersArray={onlineUsersArray}
|
||||
>
|
||||
<ChatProvider>{children}</ChatProvider>
|
||||
</EditorProvider>
|
||||
@@ -28,7 +32,9 @@ ContextRoot.propTypes = {
|
||||
children: PropTypes.any,
|
||||
editorLoading: PropTypes.bool,
|
||||
chatIsOpenAngular: PropTypes.bool,
|
||||
setChatIsOpenAngular: PropTypes.func.isRequired
|
||||
setChatIsOpenAngular: PropTypes.func.isRequired,
|
||||
openDoc: PropTypes.func.isRequired,
|
||||
onlineUsersArray: PropTypes.array.isRequired
|
||||
}
|
||||
|
||||
export const rootContext = createSharedContext(ContextRoot)
|
||||
|
||||
Reference in New Issue
Block a user