Skip to content

Commit

Permalink
fix: import component
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Oct 4, 2023
1 parent 8e8c583 commit f0e8a34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/roomkit-react/src/Prebuilt/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import FullPageProgress from './components/FullPageProgress';
import { Init } from './components/init/Init';
// @ts-ignore: No implicit Any
import { KeyboardHandler } from './components/Input/KeyboardInputManager';
import { MwebLandscapePrompt } from './components/MwebLandscapePrompt';
// @ts-ignore: No implicit Any
import { Notifications } from './components/Notifications';
import { HeadlessEndRoomListener } from './components/Notifications/HeadlessEndRoomListener';
Expand Down Expand Up @@ -350,6 +351,7 @@ function AppRoutes({
<>
<ToastContainer />
<Notifications />
<MwebLandscapePrompt />
<BackSwipe />
{!isNotificationsDisabled && <FlyingEmoji />}
<RemoteStopScreenshare />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Box, Flex } from '../../Layout';
import { Dialog } from '../../Modal';
import { Text } from '../../Text';
import { PrebuiltDialogPortal } from './PrebuiltDialogPortal';
// @ts-ignore: No implicit Any
import { isAndroid, isIOS } from '../common/constants';

export const MwebLandscapePrompt = () => {
Expand All @@ -13,10 +14,7 @@ export const MwebLandscapePrompt = () => {

useEffect(() => {
const handleResize = () => {
const loggedString = `ismob: ${isMobile}, show: ${showMwebLandscapePrompt}, h,w: ${window.innerHeight} ${window.innerWidth}`;
setShowMwebLandscapePrompt(isMobile && window.innerHeight < window.innerWidth);
alert(loggedString);
console.log(loggedString, 'ollo');
};

handleResize();
Expand Down

0 comments on commit f0e8a34

Please sign in to comment.