Skip to content

Commit

Permalink
Delete iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Nov 21, 2024
1 parent 46cfd8c commit fa7eab4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/pages/organizers/[organizerId]/preview/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -233,11 +227,6 @@ const OrganizersPreview = () => {
</Button>
</Stack>
</Inline>
<iframe
height={iframeHeight}
src={legacyPath}
ref={iframeRef}
></iframe>
</Stack>
)}
{!isOwnershipEnabled && <OrganizerTable organizer={organizer} />}
Expand Down

0 comments on commit fa7eab4

Please sign in to comment.