From 72f8f8ddcde0225d1598650166c0dda7013dc5c8 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Fri, 30 May 2025 13:34:33 +0200 Subject: [PATCH] Remove comments --- src/components/Apps/AppViewer.tsx | 18 ------------------ src/components/Apps/AppViewerContainer.tsx | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/components/Apps/AppViewer.tsx b/src/components/Apps/AppViewer.tsx index 606f80a..0cdad98 100644 --- a/src/components/Apps/AppViewer.tsx +++ b/src/components/Apps/AppViewer.tsx @@ -43,11 +43,6 @@ export const AppViewer = forwardRef( if (app?.isPreview) return; if (isDevMode) { setUrl(app?.url + `?theme=${themeMode}&lang=${currentLang}`); - console.log( - 'AAAAAAAAAAA---->' + - app.url + - `&theme=${themeMode}&lang=${currentLang}` - ); // TODO remove comment return; } let hasQueryParam = false; @@ -64,11 +59,6 @@ export const AppViewer = forwardRef( if (app?.isPreview && app?.url) { resetHistory(); setUrl(app.url + `&theme=${themeMode}&lang=${currentLang}`); - console.log( - 'AAAAAAAAAAA---->' + - app.url + - `&theme=${themeMode}&lang=${currentLang}` - ); // TODO remove comment } }, [app?.url, app?.isPreview]); @@ -86,12 +76,6 @@ export const AppViewer = forwardRef( app?.url + `?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}` ); - - console.log( - 'AAAAAAAAAAA---->' + - app?.url + - `?time=${Date.now()}&theme=${themeMode}&lang=${currentLang}` - ); // TODO remove comment } return; } @@ -113,7 +97,6 @@ export const AppViewer = forwardRef( if (!iframe) return; try { - console.log('THEME_CHANGED---->' + iframe.src); // TODO remove comment const targetOrigin = new URL(iframe.src).origin; iframe.contentWindow?.postMessage( { action: 'THEME_CHANGED', theme: themeMode, requestedHandler: 'UI' }, @@ -129,7 +112,6 @@ export const AppViewer = forwardRef( if (!iframe) return; try { - console.log('LANGUAGE_CHANGED---->' + iframe.src); // TODO remove comment const targetOrigin = new URL(iframe.src).origin; iframe.contentWindow?.postMessage( { diff --git a/src/components/Apps/AppViewerContainer.tsx b/src/components/Apps/AppViewerContainer.tsx index e26eb4a..5f6e30d 100644 --- a/src/components/Apps/AppViewerContainer.tsx +++ b/src/components/Apps/AppViewerContainer.tsx @@ -3,7 +3,7 @@ import { AppViewer } from './AppViewer'; import Frame from 'react-frame-component'; type AppViewerContainerProps = { - app: any; // Replace `any` with the correct type of `tab` if available + app: any; isSelected: boolean; hide: boolean; isDevMode: boolean;