From 1fae3a7b99148da6a88ca4e0c14f34336c306858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 5 Apr 2024 08:01:52 +0100 Subject: [PATCH] chore: Remove close tab option (#2983) --- editor.planx.uk/src/pages/Preview/ResumePage.tsx | 9 ++++----- editor.planx.uk/src/pages/Preview/SavePage.tsx | 9 ++++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/editor.planx.uk/src/pages/Preview/ResumePage.tsx b/editor.planx.uk/src/pages/Preview/ResumePage.tsx index 35db51f147..4139a951d2 100644 --- a/editor.planx.uk/src/pages/Preview/ResumePage.tsx +++ b/editor.planx.uk/src/pages/Preview/ResumePage.tsx @@ -109,14 +109,13 @@ export const EmailError: React.FC<{ retry: () => void }> = ({ retry }) => { export const EmailSuccess: React.FC = () => { return ( - window.close()} - > + If you have any draft applications we have sent you an email that contains a link. Use this link to access your applications. +
+
+ You may now close this tab.
); diff --git a/editor.planx.uk/src/pages/Preview/SavePage.tsx b/editor.planx.uk/src/pages/Preview/SavePage.tsx index 11f6dc400e..d411782ca2 100644 --- a/editor.planx.uk/src/pages/Preview/SavePage.tsx +++ b/editor.planx.uk/src/pages/Preview/SavePage.tsx @@ -5,6 +5,7 @@ import { add } from "date-fns"; import { useStore } from "pages/FlowEditor/lib/store"; import React, { useEffect, useState } from "react"; import { SendEmailPayload } from "types"; +import { removeSessionIdSearchParam } from "utils"; import StatusPage from "./StatusPage"; @@ -21,9 +22,8 @@ export const SaveSuccess: React.FC<{ window.close()} - additionalOption="startNewApplication" + buttonText="Start a new application" + onButtonClick={removeSessionIdSearchParam} > We have sent a link to {saveToEmail}. Use the link to continue your @@ -34,6 +34,9 @@ export const SaveSuccess: React.FC<{

Your application will be deleted if you do not complete it by this date. +
+
+ You may now close this tab.
);