From 7beca72dd8fd8e32e052d450489a4e7296c47e63 Mon Sep 17 00:00:00 2001 From: Mingfei Shao <2475897+mfshao@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:22:28 -0500 Subject: [PATCH] fix change access form text type (#1589) --- .../Constants/FormSpecificConstants.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx b/src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx index cf8ccae53..445248c99 100644 --- a/src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx +++ b/src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx @@ -39,30 +39,36 @@ const DataDictionarySubmissionRequest = { description: 'Please fill out this form to request access to submit data dictionaries to your study on the HEAL Platform.', resultTitle: 'Your access request has been submitted!', - resultSubtitle: - 'Thank you for your submission. Requests take up to 1 business day to complete. You will be notified of the status.', + resultSubtitle: () => ( + 'Thank you for your submission. Requests take up to 1 business day to complete. You will be notified of the status.' + ), showStudyName: true, showGrantNumber: false, showDisclaimer: true, subjectLine: 'Data dictionary submission access request for', successRedirectLink: '/discovery', successRedirectText: 'Go to Discovery Page', - pendingRequestText: 'There is already a pending request for this study/user combination, please wait while we are processing your request.', + pendingRequestText: () => ( + 'There is already a pending request for this study/user combination, please wait while we are processing your request.' + ), }; const WorkspaceAccessRequest = { name: 'WorkspaceAccessRequest', title: 'Workspace Access Request', description: workspaceRegistrationConfig?.workspaceInfoMessage || 'Please fill out this form to request and be approved for access to workspace.', resultTitle: 'Your access request has been submitted!', - resultSubtitle: - 'Thank you for your submission. Requests take up to 1 business day to complete. Please check back then.', + resultSubtitle: () => ( + 'Thank you for your submission. Requests take up to 1 business day to complete. Please check back then.' + ), showStudyName: false, showGrantNumber: true, showDisclaimer: false, subjectLine: 'Workspace Access Request for Workspace in', successRedirectLink: workspaceRegistrationConfig?.successRedirect.link || '/discovery', successRedirectText: workspaceRegistrationConfig?.successRedirect.text || 'Go to Discovery Page', - pendingRequestText: 'There is already a pending request for workspace access for this user. Please wait while we are processing your request', + pendingRequestText: () => ( + 'There is already a pending request for workspace access for this user. Please wait while we are processing your request' + ), }; const determineSpecificFormInfo = (path: String) => { if (path === '/study-reg/request-access') {