Skip to content

Commit

Permalink
Remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-drozd-it committed Sep 18, 2024
1 parent aa26785 commit 52d23c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions src/components/drawing/DrawingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import BgColorsPicker from './BgColorsPicker';
import { RoomState } from '../../store/slices/roomSlice';

interface DrawingBoardProps {
// roundedCorners: boolean;
// videoRef: React.RefObject<HTMLVideoElement>;
width: number;
height: number;
}
Expand Down Expand Up @@ -478,10 +476,7 @@ const DrawingBoard = ({ width, height }: DrawingBoardProps): JSX.Element => {
return (
<Grid
container
// width={width}
// height={height}
>

{/* Canvas */}
<Grid item>
<Box ref={canvasRef} component="canvas" />
Expand All @@ -492,7 +487,6 @@ const DrawingBoard = ({ width, height }: DrawingBoardProps): JSX.Element => {
sx={{
borderTop: '1px solid gray',
backgroundColor: 'lightgray',
// display: 'none',
}}
justifyContent='center'
direction='row'
Expand Down
4 changes: 1 addition & 3 deletions src/components/maincontent/MainContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const MainContent = (): JSX.Element => {
const headless = useAppSelector((state) => state.room.headless);
const spotlightsVisible = useAppSelector(selectedVideoBoxesSelector) > 0;
const videosVisible = useAppSelector(videoBoxesSelector) > 0;
const drawingOpen = useAppSelector((state) => state.ui.drawingOpen);

const height = (chatOpen && participantListOpen) && verticalDivide ? '50%' : '100%';

Expand Down Expand Up @@ -118,9 +117,8 @@ const MainContent = (): JSX.Element => {
<WrapperContainer headless={headless ? 1 : 0} ref={mainContainer}>
<ControlButtonsBar />
<MainContainer horizontal={horizontal ? 1 : 0} >
{ (spotlightsVisible || drawingOpen) && <Spotlights windowSize={windowSize} horizontal={horizontal} videos={videosVisible} /> }
{ spotlightsVisible && <Spotlights windowSize={windowSize} horizontal={horizontal} videos={videosVisible} /> }
{ videosVisible && <Democratic windowSize={windowSize} horizontal={spotlightsVisible && horizontal} spotlights={spotlightsVisible} /> }
{/* { (videosVisible && !drawingOpen) && <Democratic windowSize={windowSize} horizontal={spotlightsVisible && horizontal} spotlights={spotlightsVisible} /> } */}
</MainContainer>
{ !isMobile && eitherOpen &&
<SideContent
Expand Down

0 comments on commit 52d23c9

Please sign in to comment.