Skip to content

Commit

Permalink
Fix merge issue and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Nov 13, 2024
1 parent 1d12a43 commit 05ef445
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import {
Modal,
ModalBody,
ModalFooter,
ModalHeader,
Label,
FormGroup,
Row,
Expand Down Expand Up @@ -219,6 +219,11 @@ const EditExceptionModal: React.FC<EditRecordModalProps> = ({
setShowSuccessMessage(false);
setShowErrorMessage(false);
};
const closeBtn = (
<button className="close" onClick={onClose} type="button">
&times;
</button>
);

return (
<>
Expand All @@ -228,15 +233,9 @@ const EditExceptionModal: React.FC<EditRecordModalProps> = ({
className="modal-dialog modal-lg"
onClosed={dismissMessages}
>
<div className="modal-header">
<h4 className="modal-title text-capitalize">
Edit Exception ID {exception.exception_id} for{' '}
{exception.entity_name}
</h4>
<button type="button" className="close" onClick={onClose}>
<span aria-hidden="true">&#xe912;</span>
</button>
</div>
<ModalHeader close={closeBtn}>
Edit Exception ID {exception.exception_id} for {exception.entity_name}
</ModalHeader>
<ModalBody>
<h4 className="modal-header">Edit Selected Exception</h4>
<FormikProvider value={formik}>
Expand All @@ -245,9 +244,7 @@ const EditExceptionModal: React.FC<EditRecordModalProps> = ({
{exception.request_type == 'Threshold' && (
<Col md={4}>
<FormGroup>
<Label
for="approved_threshold"
>
<Label for="approved_threshold">
<strong>Approved Threshold</strong>
</Label>
<Field
Expand Down Expand Up @@ -279,9 +276,7 @@ const EditExceptionModal: React.FC<EditRecordModalProps> = ({
)}
<Col md={4}>
<FormGroup>
<Label
for="approved_expiration_date"
>
<Label for="approved_expiration_date">
<strong>Approved Expiration Date</strong>
</Label>
<Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const AdminExceptions: React.FC = () => {
{data?.selected_status || data?.selected_org ? (
<button onClick={clearSelections}>Clear Options</button>
) : null}

</div>
</div>
<table id="exceptionTable" className="exception-table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ export const RegistrationEntity: React.FC<{ index: number }> = ({ index }) => {
/>
</FormGroup>
))}
<ErrorMessage name={`entities.${index}.types_of_plans_hidden`} component="div" className={styles.isInvalid} />
<ErrorMessage
name={`entities.${index}.types_of_plans_hidden`}
component="div"
className={styles.isInvalid}
/>
</FormGroup>

<h6>File Submission</h6>
Expand Down Expand Up @@ -151,7 +155,11 @@ export const RegistrationEntity: React.FC<{ index: number }> = ({ index }) => {
/>
</FormGroup>
))}
<ErrorMessage name={`entities.${index}.types_of_files_hidden`} component="div" className={styles.isInvalid} />
<ErrorMessage
name={`entities.${index}.types_of_files_hidden`}
component="div"
className={styles.isInvalid}
/>
</FormGroup>

<h6>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const validationSchema = Yup.object().shape({
) {
return this.createError({
message: 'Please select at least one plan type.',
path: this.path + ".types_of_plans_hidden"
path: this.path + '.types_of_plans_hidden',
});
}
return true;
Expand All @@ -99,7 +99,7 @@ const validationSchema = Yup.object().shape({
) {
return this.createError({
message: 'Please select at least one claims file type (see above).',
path: this.path + ".types_of_files_hidden"
path: this.path + '.types_of_files_hidden',
});
}
return true;
Expand Down Expand Up @@ -165,21 +165,21 @@ const initialValues: RegistrationFormValues = {
};

const initialTouched = {
on_behalf_of: true,
type: true,
entities: [
{
types_of_plans_commercial: true,
types_of_plans_medicare: true,
types_of_plans_medicaid: true,
types_of_files_eligibility_enrollment: true,
types_of_files_provider: true,
types_of_files_medical: true,
types_of_files_pharmacy: true,
types_of_files_dental: true,
}
]
}
on_behalf_of: true,
type: true,
entities: [
{
types_of_plans_commercial: true,
types_of_plans_medicare: true,
types_of_plans_medicaid: true,
types_of_files_eligibility_enrollment: true,
types_of_files_provider: true,
types_of_files_medical: true,
types_of_files_pharmacy: true,
types_of_files_dental: true,
},
],
};

export const RegistrationForm: React.FC<{
isEdit?: boolean;
Expand Down Expand Up @@ -329,8 +329,8 @@ export const RegistrationForm: React.FC<{
</Label>
</FormGroup>
<div className="help-text">
Whether you submit on behalf of your own organization
(Self) or another organization (Other)
Whether you submit on behalf of your own organization (Self)
or another organization (Other)
</div>
</FormGroup>
<TextFormField
Expand Down

0 comments on commit 05ef445

Please sign in to comment.