Skip to content

Commit 7beca72

Browse files
authored
fix change access form text type (#1589)
1 parent f27faa1 commit 7beca72

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx

+12-6
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,36 @@ const DataDictionarySubmissionRequest = {
3939
description:
4040
'Please fill out this form to request access to submit data dictionaries to your study on the HEAL Platform.',
4141
resultTitle: 'Your access request has been submitted!',
42-
resultSubtitle:
43-
'Thank you for your submission. Requests take up to 1 business day to complete. You will be notified of the status.',
42+
resultSubtitle: () => (
43+
'Thank you for your submission. Requests take up to 1 business day to complete. You will be notified of the status.'
44+
),
4445
showStudyName: true,
4546
showGrantNumber: false,
4647
showDisclaimer: true,
4748
subjectLine: 'Data dictionary submission access request for',
4849
successRedirectLink: '/discovery',
4950
successRedirectText: 'Go to Discovery Page',
50-
pendingRequestText: 'There is already a pending request for this study/user combination, please wait while we are processing your request.',
51+
pendingRequestText: () => (
52+
'There is already a pending request for this study/user combination, please wait while we are processing your request.'
53+
),
5154
};
5255
const WorkspaceAccessRequest = {
5356
name: 'WorkspaceAccessRequest',
5457
title: 'Workspace Access Request',
5558
description: workspaceRegistrationConfig?.workspaceInfoMessage || 'Please fill out this form to request and be approved for access to workspace.',
5659
resultTitle: 'Your access request has been submitted!',
57-
resultSubtitle:
58-
'Thank you for your submission. Requests take up to 1 business day to complete. Please check back then.',
60+
resultSubtitle: () => (
61+
'Thank you for your submission. Requests take up to 1 business day to complete. Please check back then.'
62+
),
5963
showStudyName: false,
6064
showGrantNumber: true,
6165
showDisclaimer: false,
6266
subjectLine: 'Workspace Access Request for Workspace in',
6367
successRedirectLink: workspaceRegistrationConfig?.successRedirect.link || '/discovery',
6468
successRedirectText: workspaceRegistrationConfig?.successRedirect.text || 'Go to Discovery Page',
65-
pendingRequestText: 'There is already a pending request for workspace access for this user. Please wait while we are processing your request',
69+
pendingRequestText: () => (
70+
'There is already a pending request for workspace access for this user. Please wait while we are processing your request'
71+
),
6672
};
6773
const determineSpecificFormInfo = (path: String) => {
6874
if (path === '/study-reg/request-access') {

0 commit comments

Comments
 (0)