ref: change JitsiModal to better fit to needs

This commit is contained in:
Bettenbuk Zoltan
2020-04-06 17:14:32 +02:00
committed by Zoltan Bettenbuk
parent 84714ba3bd
commit 678ed605d7
12 changed files with 77 additions and 61 deletions

View File

@@ -213,6 +213,19 @@ class Conference extends AbstractConference<Props, *> {
return true;
}
/**
* Renders JitsiModals that are supposed to be on the conference screen.
*
* @returns {Array<ReactElement>}
*/
_renderConferenceModals() {
return [
<AddPeopleDialog key = 'addPeopleDialog' />,
<Chat key = 'chat' />,
<SharedDocument key = 'sharedDocument' />
];
}
/**
* Renders the conference notification badge if the feature is enabled.
*
@@ -252,10 +265,6 @@ class Conference extends AbstractConference<Props, *> {
return (
<>
<AddPeopleDialog />
<Chat />
<SharedDocument />
{/*
* The LargeVideo is the lowermost stacking layer.
*/
@@ -335,6 +344,8 @@ class Conference extends AbstractConference<Props, *> {
<TestConnectionInfo />
{ this._renderConferenceNotification() }
{ this._renderConferenceModals() }
</>
);
}