From fa7eab4f693d4aed25deac4b6f9bff10cf8eb8d7 Mon Sep 17 00:00:00 2001
From: vhande <78013271+vhande@users.noreply.github.com>
Date: Thu, 21 Nov 2024 11:31:50 +0100
Subject: [PATCH] Delete iframe
---
.../organizers/[organizerId]/preview/index.page.tsx | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/pages/organizers/[organizerId]/preview/index.page.tsx b/src/pages/organizers/[organizerId]/preview/index.page.tsx
index 4800c7973..1dc98578a 100644
--- a/src/pages/organizers/[organizerId]/preview/index.page.tsx
+++ b/src/pages/organizers/[organizerId]/preview/index.page.tsx
@@ -38,11 +38,9 @@ import { OrganizerTable } from './OrganizerTable';
const OrganizersPreview = () => {
const { t, i18n } = useTranslation();
const queryClient = useQueryClient();
- const [iframeHeight, setIframeHeight] = useState(0);
const [isQuestionModalVisible, setIsQuestionModalVisible] = useState(false);
const [isSuccessAlertVisible, setIsSuccessAlertVisible] = useState(false);
const [isErrorAlertVisible, setIsErrorAlertVisible] = useState(false);
- const iframeRef = useRef(null);
const legacyPath = useLegacyPath();
const router = useRouter();
const { publicRuntimeConfig } = getConfig();
@@ -73,10 +71,6 @@ const OrganizersPreview = () => {
organizer?.mainLanguage as SupportedLanguage,
);
- useHandleWindowMessage({
- [WindowMessageTypes.PAGE_HEIGHT]: (event) => setIframeHeight(event?.height),
- });
-
const getUserQuery = useGetUserQuery();
// @ts-expect-error
const userId = getUserQuery.data?.sub;
@@ -233,11 +227,6 @@ const OrganizersPreview = () => {
-
)}
{!isOwnershipEnabled && }