diff --git a/packages/roomkit-react/src/Prebuilt/App.tsx b/packages/roomkit-react/src/Prebuilt/App.tsx index 6f600aa36e..d4e07ebd52 100644 --- a/packages/roomkit-react/src/Prebuilt/App.tsx +++ b/packages/roomkit-react/src/Prebuilt/App.tsx @@ -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'; @@ -350,6 +351,7 @@ function AppRoutes({ <> + {!isNotificationsDisabled && } diff --git a/packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.jsx b/packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.tsx similarity index 91% rename from packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.jsx rename to packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.tsx index 0986d49c44..460a7379ab 100644 --- a/packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.jsx +++ b/packages/roomkit-react/src/Prebuilt/components/MwebLandscapePrompt.tsx @@ -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 = () => { @@ -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();