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 && }