Skip to content

Commit

Permalink
Code Optimization
Browse files Browse the repository at this point in the history
- Animation file compress
-  react-device-detect library removed
  • Loading branch information
BhumiSalat committed Jun 3, 2024
1 parent 7807fbe commit 56e1684
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-device-detect": "^2.2.3",
"react-dom": "^18.2.0",
"react-emoji-render": "^2.0.1",
"react-i18next": "^12.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/animations/join_meeting.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/animations/wait_for_HLS_animation.json

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/meetingContainer/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ import {
ClosedCaption,
ClosedCaptionOutlined,
} from "@mui/icons-material";
import {
isMobile as RDDIsMobile,
isTablet as RDDIsTablet,
} from "react-device-detect";
import ConfirmBox from "../components/ConfirmBox";
import OutlineIconTextButton from "../components/OutlineIconTextButton";
import MobileIconButton from "../components/MobileIconButton";
Expand Down Expand Up @@ -570,7 +566,7 @@ const ScreenShareBTN = ({ onClick, isMobile, isTab }) => {
typeof onClick === "function" && onClick();
}}
disabled={
RDDIsMobile || RDDIsTablet
isMobile || isTab
? true
: whiteboardStarted
? true
Expand Down Expand Up @@ -600,7 +596,7 @@ const ScreenShareBTN = ({ onClick, isMobile, isTab }) => {
toggleScreenShare();
}}
disabled={
RDDIsMobile || RDDIsTablet
isMobile || isTab
? true
: whiteboardStarted
? true
Expand Down
2 changes: 1 addition & 1 deletion src/utils/useIsMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const useIsMobile = (maxWidth) => {
return isMobile;
};

export default useIsMobile;
export default useIsMobile;

0 comments on commit 56e1684

Please sign in to comment.