diff --git a/src/Components/Modals/CreateModal.js b/src/Components/Modals/CreateModal.js
index 2a9fe76..a39ebd9 100644
--- a/src/Components/Modals/CreateModal.js
+++ b/src/Components/Modals/CreateModal.js
@@ -337,7 +337,6 @@ const CreateModal = ({ setShowModal, caseData }) => {
}
/>
-
{isEditing ? (
Plaintiff(s)
@@ -362,144 +361,6 @@ const CreateModal = ({ setShowModal, caseData }) => {
/>
-
-
- {isEditing ? (
- Contact name
- ) : (
- <>>
- )}
- handleChangeInput(e, "contactName")}
- label={
- data.contactName.value.length === 0
- ? isEditing
- ? caseData.contactName
- : "Contact Name"
- : ""
- }
- />
-
-
-
-
-
-
- {isEditing ? (
- Case type
- ) : (
- <>>
- )}
- handleChangeInput(e, "caseType")}
- label={
- data.caseType.value.length === 0
- ? isEditing
- ? caseData.caseType
- : "Case Type"
- : ""
- }
- />
-
-
-
- {isEditing ? (
- Contact email
- ) : (
- <>>
- )}
- handleChangeInput(e, "contactEmail")}
- label={
- data.contactEmail.value.length === 0
- ? isEditing
- ? caseData.contactEmail
- : "Contact Email"
- : ""
- }
- />
-
-
-
-
-
- handleChangeInput(e, "clientPosition")}
- />
-
-
-
- {isEditing ? (
- Billing code
- ) : (
- <>>
- )}
- handleChangeInput(e, "billingCode")}
- label={
- data.billingCode.value.length === 0
- ? isEditing
- ? caseData.billingCode
- : "Billing Code"
- : ""
- }
- />
-
-
-
-
- {isEditing ? (
- Lead attorney
- ) : (
- <>>
- )}
- handleChangeInput(e, "leadAttorneys")}
- label={
- data.leadAttorneys.value.length === 0
- ? isEditing
- ? caseData.leadAttorneys
- : "Lead Attornery(s)"
- : ""
- }
- />
-
-
-
>
);
@@ -531,3 +392,114 @@ const CreateModal = ({ setShowModal, caseData }) => {
};
export default CreateModal;
+
+/*
+
+ {isEditing ? (
+ Contact name
+ ) : (
+ <>>
+ )}
+ handleChangeInput(e, "contactName")}
+ label={
+ data.contactName.value.length === 0
+ ? isEditing
+ ? caseData.contactName
+ : "Contact Name"
+ : ""
+ }
+ />
+
+
+
+ {isEditing ? (
+ Case type
+ ) : (
+ <>>
+ )}
+ handleChangeInput(e, "caseType")}
+ label={
+ data.caseType.value.length === 0
+ ? isEditing
+ ? caseData.caseType
+ : "Case Type"
+ : ""
+ }
+ />
+
+
+
+
+
+ handleChangeInput(e, "clientPosition")}
+ />
+
+
+
+
+ {isEditing ? (
+ Billing code
+ ) : (
+ <>>
+ )}
+ handleChangeInput(e, "billingCode")}
+ label={
+ data.billingCode.value.length === 0
+ ? isEditing
+ ? caseData.billingCode
+ : "Billing Code"
+ : ""
+ }
+ />
+
+
+
+ {isEditing ? (
+ Lead attorney
+ ) : (
+ <>>
+ )}
+ handleChangeInput(e, "leadAttorneys")}
+ label={
+ data.leadAttorneys.value.length === 0
+ ? isEditing
+ ? caseData.leadAttorneys
+ : "Lead Attornery(s)"
+ : ""
+ }
+ />
+
+ */
diff --git a/src/Constants/Fields/CreateCaseFields.js b/src/Constants/Fields/CreateCaseFields.js
index 0007664..6ed1c15 100644
--- a/src/Constants/Fields/CreateCaseFields.js
+++ b/src/Constants/Fields/CreateCaseFields.js
@@ -6,16 +6,17 @@ export const createCaseFields = {
plaintiffParties: { required: true, maxLength: 45 },
defendantParties: { required: true, maxLength: 45 },
jurisdiction: { required: true, maxLength: 45 },
- billingCode: { required: true, maxLength: 45 },
venue: { required: true, maxLength: 45 },
- caseType: { required: true, maxLength: 45 },
trialDate: { required: true, maxLength: 45, type: "date" },
filedDate: { required: true, maxLength: 45, type: "date" },
- contactName: { required: true, maxLength: 45 },
- contactEmail: { required: true, maxLength: 45, type: "email" },
- leadAttorneys: { required: true, maxLength: 45 },
lawFirm: { required: false, maxLength: 45 },
- clientPosition: { required: true, default: "Plaintiff" },
};
-export const createCaseAdditionalFields = {};
+export const createCaseAdditionalFields = {
+ contactEmail: { required: true, maxLength: 45, type: "email" },
+ contactName: { required: true, maxLength: 45 },
+ clientPosition: { required: true, default: "Plaintiff" },
+ caseType: { required: true, maxLength: 45 },
+ billingCode: { required: true, maxLength: 45 },
+ leadAttorneys: { required: true, maxLength: 45 },
+};