Merge pull request #13754 from ramonlsouza/issue-13512

Polling panel to remember "Work In Progress" polls
This commit is contained in:
Anton Georgiev 2021-11-25 09:22:22 -05:00 committed by GitHub
commit b3a5011003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@ const SidebarContent = (props) => {
};
const smallSidebar = width < (maxWidth / 2);
const pollDisplay = sidebarContentPanel === PANELS.POLL ? 'inherit' : 'none';
return (
<Resizable
@ -124,14 +125,11 @@ const SidebarContent = (props) => {
{sidebarContentPanel === PANELS.CHAT && <ChatContainer />}
{sidebarContentPanel === PANELS.SHARED_NOTES && <NoteContainer />}
{sidebarContentPanel === PANELS.CAPTIONS && <CaptionsContainer />}
{sidebarContentPanel === PANELS.POLL
&& (
<Styled.Poll style={{ minWidth, top: '0' }} id="pollPanel">
<PollContainer smallSidebar={smallSidebar} />
</Styled.Poll>
)}
{sidebarContentPanel === PANELS.BREAKOUT && <BreakoutRoomContainer />}
{sidebarContentPanel === PANELS.WAITING_USERS && <WaitingUsersPanel />}
<Styled.Poll style={{ minWidth, top: '0', display: pollDisplay }} id="pollPanel">
<PollContainer smallSidebar={smallSidebar} />
</Styled.Poll>
</Resizable>
);
};