From f0e8a348f17681c1bbed568296645da271c5ab12 Mon Sep 17 00:00:00 2001 From: KaustubhKumar05 Date: Wed, 4 Oct 2023 16:47:28 +0530 Subject: [PATCH] fix: import component --- packages/roomkit-react/src/Prebuilt/App.tsx | 2 ++ .../{MwebLandscapePrompt.jsx => MwebLandscapePrompt.tsx} | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/roomkit-react/src/Prebuilt/components/{MwebLandscapePrompt.jsx => MwebLandscapePrompt.tsx} (91%) 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();