From a5c89b5030d7a222405bdde231ed3b134530277b Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Tue, 21 Nov 2023 13:40:01 -0500 Subject: [PATCH] [candidate_parameters] Fix loading of candidate_parameters page The candidate_parameters pages were missing a number of import statements for elements from Form.js, making the page not load. This adds the missing imports. Resolves #8968 --- Makefile | 3 +++ modules/candidate_parameters/jsx/CandidateDOB.js | 6 ++++++ modules/candidate_parameters/jsx/CandidateDOD.js | 6 ++++++ modules/candidate_parameters/jsx/CandidateInfo.js | 8 ++++++++ modules/candidate_parameters/jsx/ConsentStatus.js | 8 ++++++++ modules/candidate_parameters/jsx/ParticipantStatus.js | 7 +++++++ 6 files changed, 38 insertions(+) diff --git a/Makefile b/Makefile index 8d93bad319f..c4a937abc68 100755 --- a/Makefile +++ b/Makefile @@ -68,5 +68,8 @@ login: mri_violations: target=mri_violations npm run compile +candidate_parameters: + target=candidate_parameters npm run compile + dashboard: target=dashboard npm run compile diff --git a/modules/candidate_parameters/jsx/CandidateDOB.js b/modules/candidate_parameters/jsx/CandidateDOB.js index b5f9ac2d9c8..2cda15a7c06 100644 --- a/modules/candidate_parameters/jsx/CandidateDOB.js +++ b/modules/candidate_parameters/jsx/CandidateDOB.js @@ -2,6 +2,12 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import Loader from 'Loader'; import swal from 'sweetalert2'; +import { + FormElement, + StaticElement, + ButtonElement, + DateElement, +} from 'jsx/Form'; /** * Candidate date of birth component diff --git a/modules/candidate_parameters/jsx/CandidateDOD.js b/modules/candidate_parameters/jsx/CandidateDOD.js index 2376c058219..1e09298886f 100644 --- a/modules/candidate_parameters/jsx/CandidateDOD.js +++ b/modules/candidate_parameters/jsx/CandidateDOD.js @@ -2,6 +2,12 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import Loader from 'Loader'; import swal from 'sweetalert2'; +import { + FormElement, + StaticElement, + DateElement, + ButtonElement, +} from 'jsx/Form'; /** * Candidate date of death component diff --git a/modules/candidate_parameters/jsx/CandidateInfo.js b/modules/candidate_parameters/jsx/CandidateInfo.js index 65a39aa5444..b38f070cb01 100644 --- a/modules/candidate_parameters/jsx/CandidateInfo.js +++ b/modules/candidate_parameters/jsx/CandidateInfo.js @@ -1,5 +1,13 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; +import { + FormElement, + StaticElement, + SelectElement, + DateElement, + ButtonElement, + TextareaElement, +} from 'jsx/Form'; /** * Candiate info component diff --git a/modules/candidate_parameters/jsx/ConsentStatus.js b/modules/candidate_parameters/jsx/ConsentStatus.js index 0f9c8d82d41..433ebd9ab4d 100644 --- a/modules/candidate_parameters/jsx/ConsentStatus.js +++ b/modules/candidate_parameters/jsx/ConsentStatus.js @@ -4,6 +4,14 @@ import swal from 'sweetalert2'; import {VerticalTabs, TabPane} from 'Tabs'; import Loader from 'Loader'; +import { + FormElement, + StaticElement, + ButtonElement, + HeaderElement, + SelectElement, + DateElement, +} from 'jsx/Form'; /** * Consent Status Component. diff --git a/modules/candidate_parameters/jsx/ParticipantStatus.js b/modules/candidate_parameters/jsx/ParticipantStatus.js index 97fa3db749a..5ec4a683858 100644 --- a/modules/candidate_parameters/jsx/ParticipantStatus.js +++ b/modules/candidate_parameters/jsx/ParticipantStatus.js @@ -1,5 +1,12 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; +import { + FormElement, + StaticElement, + SelectElement, + TextareaElement, + ButtonElement, +} from 'jsx/Form'; /** * Participant status component