From b5a109fdb28b287927c3660388d50ceee37539a4 Mon Sep 17 00:00:00 2001 From: Isha Date: Thu, 7 Nov 2024 14:46:01 +0530 Subject: [PATCH] Display IFrame in modal --- .../components/projects/create/Configure.tsx | 12 ++++- .../src/components/projects/create/IFrame.tsx | 49 +++++++++++++++---- 2 files changed, 50 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx index 7729b5a5..36661f53 100644 --- a/packages/frontend/src/components/projects/create/Configure.tsx +++ b/packages/frontend/src/components/projects/create/Configure.tsx @@ -286,6 +286,10 @@ const Configure = () => { [client, createProject, dismiss, toast], ); + const toggleModal = () => { + setIsFrameVisible((prev) => !prev); + }; + const fetchDeployers = useCallback(async () => { const res = await client.getDeployers(); setDeployers(res.deployers); @@ -537,7 +541,13 @@ const Configure = () => { ) : ( <> - + + );