From b691b7636109153d8f270a4a38460468310c7823 Mon Sep 17 00:00:00 2001 From: vhande <78013271+vhande@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:29:55 +0100 Subject: [PATCH] Update preview page --- .../[organizerId]/preview/index.page.tsx | 104 +++++++++--------- 1 file changed, 55 insertions(+), 49 deletions(-) diff --git a/src/pages/organizers/[organizerId]/preview/index.page.tsx b/src/pages/organizers/[organizerId]/preview/index.page.tsx index 9844e106c..a108872bf 100644 --- a/src/pages/organizers/[organizerId]/preview/index.page.tsx +++ b/src/pages/organizers/[organizerId]/preview/index.page.tsx @@ -73,11 +73,6 @@ const OrganizersPreview = () => { organizer?.mainLanguage as SupportedLanguage, ); - useHandleWindowMessage({ - [WindowMessageTypes.OWNERSHIP_REQUEST_DIALOG_OPENED]: () => - setIsQuestionModalVisible(true), - }); - useHandleWindowMessage({ [WindowMessageTypes.PAGE_HEIGHT]: (event) => setIframeHeight(event?.height), }); @@ -146,56 +141,57 @@ const OrganizersPreview = () => { /> - - {isOwnershipRequested && ( - - - - )} - {isSuccessAlertVisible && ( - { - setIsSuccessAlertVisible(false); + {isOwnershipRequested && ( + + - - - )} - {isErrorAlertVisible && ( - { - setIsErrorAlertVisible(false); + /> + + )} + {isSuccessAlertVisible && ( + { + setIsSuccessAlertVisible(false); + }} + > + - - - )} - + /> + + )} + {isErrorAlertVisible && ( + { + setIsErrorAlertVisible(false); + }} + > + + + )} + - {!canEdit && isOwnershipEnabled && ( + {!canEdit && isOwnershipEnabled && !isOwnershipRequested && ( )} - + {canEdit && isOwnershipEnabled && !isOwnershipRequested && ( + + )}