Merge pull request #3632 from overleaf/msm-navbar-collaborator-widget

[ReactNavToolbar] Collaborators widget

GitOrigin-RevId: 65f2484962591103f02eb7624a974d0806b1abf0
This commit is contained in:
Miguel Serrano
2021-02-11 03:04:36 +00:00
committed by Copybot
parent 77c35e3715
commit d78644e02c
10 changed files with 208 additions and 12 deletions
@@ -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)