Skip to content

Commit

Permalink
fix change access form text type (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao authored Aug 26, 2024
1 parent f27faa1 commit 7beca72
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/GenericAccessRequestForm/Constants/FormSpecificConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 7beca72

Please sign in to comment.