fix(layout-manager): fix SonarCloud reports #18879
This commit is contained in:
parent
9cb8f05a67
commit
7e4be752af
@ -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,
|
||||
|
@ -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({
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user