diff --git a/src/pages/dar_application/ResearchPurposeStatement.js b/src/pages/dar_application/ResearchPurposeStatement.js
index b8dee535b..4c8ac2994 100644
--- a/src/pages/dar_application/ResearchPurposeStatement.js
+++ b/src/pages/dar_application/ResearchPurposeStatement.js
@@ -1,4 +1,4 @@
-import { a, div, fieldset, h2, h3, h4, h, span } from 'react-hyperscript-helpers';
+import React from 'react';
import isEmpty from 'lodash/fp/isEmpty';
import './dar_application.css';
import { FormField, FormFieldTypes, FormValidators } from '../../components/forms/forms';
@@ -16,40 +16,27 @@ const ResearchPurposeRow = (props) => {
} = props;
- return div({
- className: 'rp-row flex flex-row',
- }, [
- div({
- style: {
- width: '70%',
- }
- }, [
- div({
- className: 'rp-row-title',
- }, [title]),
- div({
- className: 'rp-row-description',
- }, [description]),
- ]),
- div({
- style: {
- width: '20%',
- }
- }, [
- h(FormField, {
- type: FormFieldTypes.YESNORADIOGROUP,
- id: id,
- validators: [FormValidators.REQUIRED],
- defaultValue,
- orientation: 'horizontal',
- validation,
- onValidationChange,
- disabled,
- onChange,
- }),
-
- ])
- ]);
+ return (
+
+
+
{title}
+
{description}
+
+
+
+
+
+ );
};
export default function ResearchPurposeStatement(props) {
@@ -74,175 +61,158 @@ export default function ResearchPurposeStatement(props) {
formFieldChange({ key, value });
};
- return(
- div({ className: 'dar-step-card' }, [
- fieldset({ disabled: !isEmpty(darCode) }, [
-
- h2({ className: '' }, ['Step 3: Research Purpose Statement']),
-
- div({ className: 'form-group' }, [
- h3({ className: '' },
- ['In order to ensure appropriate review, please answer the questions below:']),
-
- h4({}, ['I am proposing to:']),
-
- h(ResearchPurposeRow, {
- title: 'Increase controls available for a comparison group (e.g. a case-control study).',
- id: 'controls',
- defaultValue: formData.controls,
- validation: validation.controls,
- disabled: readOnlyMode,
- onValidationChange,
- onChange,
- }),
-
- h(ResearchPurposeRow, {
- title: 'Study variation in the general population (e.g. calling variants and/or studying their distribution).',
- id: 'population',
- defaultValue: formData.population,
- validation: validation.population,
- disabled: readOnlyMode,
- onValidationChange,
- onChange,
- }),
-
- h(ResearchPurposeRow, {
- title: 'Conduct research for an exclusively or partially commercial purpose.',
- id: 'forProfit',
- defaultValue: formData.forProfit,
- validation: validation.forProfit,
- onValidationChange,
- onChange,
- }),
-
- h4({}, ['Is this study:']),
-
- h(ResearchPurposeRow, {
- title: 'Limited to one gender',
- id: 'oneGender',
- defaultValue: formData.oneGender,
- validation: validation.oneGender,
- disabled: readOnlyMode,
- onValidationChange,
- onChange,
- }),
-
- div({
- isRendered: formData.oneGender,
- className: 'flex flex-row rp-subrow',
- style: {
- justifyContent: 'flex-start',
+ return (
+
+
+
);
}