fix(layout-manager): fix SonarCloud reports #18879

This commit is contained in:
vitoralmeida 2023-11-27 14:42:14 -03:00
parent 9cb8f05a67
commit 7e4be752af
3 changed files with 3 additions and 21 deletions

View File

@ -115,13 +115,7 @@ const CamerasOnlyLayout = (props) => {
const sidebarSize = sidebarContentWidth.width + sidebarNavWidth.width;
const cameraDockBounds = calculatesCameraDockBounds(mediaAreaBounds, sidebarSize);
const sidebarContentHeight = calculatesSidebarContentHeight();
const mediaBounds = calculatesMediaBounds(
mediaAreaBounds,
cameraDockBounds,
sidebarNavWidth.width,
sidebarContentWidth.width,
sidebarContentHeight.height,
);
const mediaBounds = calculatesMediaBounds();
layoutContextDispatch({
type: ACTIONS.SET_NAVBAR_OUTPUT,

View File

@ -162,13 +162,7 @@ const ParticipantsChatOnlyLayout = (props) => {
const mediaBounds = calculatesMediaBounds(mediaAreaBounds, sidebarSize);
const sidebarContentHeight = calculatesSidebarContentHeight(navbarBounds.height,
actionbarBounds.height);
const cameraDockBounds = calculatesCameraDockBounds(
mediaBounds,
mediaAreaBounds,
sidebarNavWidth.width,
sidebarContentWidth.width,
sidebarContentHeight.height,
);
const cameraDockBounds = calculatesCameraDockBounds();
const { isOpen } = presentationInput;
layoutContextDispatch({

View File

@ -115,13 +115,7 @@ const PresentationOnlyLayout = (props) => {
const sidebarSize = sidebarContentWidth.width + sidebarNavWidth.width;
const mediaBounds = calculatesMediaBounds(mediaAreaBounds, sidebarSize);
const sidebarContentHeight = calculatesSidebarContentHeight();
const cameraDockBounds = calculatesCameraDockBounds(
mediaBounds,
mediaAreaBounds,
sidebarNavWidth.width,
sidebarContentWidth.width,
sidebarContentHeight.height,
);
const cameraDockBounds = calculatesCameraDockBounds();
const { isOpen } = presentationInput;
layoutContextDispatch({