diff --git a/src/Components/Modals/CreateModal.js b/src/Components/Modals/CreateModal.js
index d5e341f..dbc5881 100644
--- a/src/Components/Modals/CreateModal.js
+++ b/src/Components/Modals/CreateModal.js
@@ -12,6 +12,8 @@ import { AppContext } from "../../Hooks/useContext/appContext.js";
import { db } from "../../firebase";
import { objectMap } from "../../Utils/Object";
import { createCaseFields as fields } from "../../Constants/Fields/CreateCaseFields.js";
+import { createCaseAdditionalFields as additionalFields } from "../../Constants/Fields/CreateCaseFields.js";
+
import "../../styles/modals.scss";
import {
getFormDataDefaults,
@@ -91,10 +93,6 @@ const CreateModal = ({ setShowModal, caseData }) => {
}
};
- const handleCreateCaseNavigation = (caseId) => {
- // console.log("caseId in handleCreateCaseNavigation", caseId);
- };
-
const handleCreateCase = (e) => {
e.preventDefault();
const dataValues = validateData();
@@ -337,7 +335,6 @@ const CreateModal = ({ setShowModal, caseData }) => {
}
/>
-
{isEditing ? (
Plaintiff(s)
@@ -362,166 +359,6 @@ const CreateModal = ({ setShowModal, caseData }) => {
/>
-
-
- {isEditing ? (
- Contast first name
- ) : (
- <>>
- )}
- handleChangeInput(e, "contactFirstName")}
- label={
- data.contactFirstName.value.length === 0
- ? isEditing
- ? caseData.contactFirstName
- : "Contact First Name"
- : ""
- }
- />
-
-
-
- {isEditing ? (
- Contact last name
- ) : (
- <>>
- )}
- handleChangeInput(e, "contactLastName")}
- label={
- data.contactLastName.value.length === 0
- ? isEditing
- ? caseData.contactLastName
- : "Contact Last 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)"
- : ""
- }
- />
-
-
-
>
);
@@ -553,3 +390,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 01e7b0d..6ed1c15 100644
--- a/src/Constants/Fields/CreateCaseFields.js
+++ b/src/Constants/Fields/CreateCaseFields.js
@@ -6,15 +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" },
- contactFirstName: { required: true, maxLength: 45 },
- contactLastName: { 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 = {
+ 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 },
};
diff --git a/src/styles/modals.scss b/src/styles/modals.scss
index abebf9d..cbcc0ef 100644
--- a/src/styles/modals.scss
+++ b/src/styles/modals.scss
@@ -31,16 +31,17 @@
.create-modal-header {
padding-left: 15px;
- margin-bottom: 29px;
+ margin-bottom: 14px;
font-weight: 500;
letter-spacing: 0.009rem;
line-height: 1.2rem;
}
.modal-caption-row {
+ height: 190px;
background-color: rgba(230, 230, 230, 0.3254901961);
padding: 15px;
- margin-bottom: 12px;
+ margin-bottom: 24px;
margin-left: 2px;
margin-right: 2px;
border-radius: 10px;
@@ -54,7 +55,7 @@
font-weight: 500;
letter-spacing: 0.009rem;
line-height: 1.2rem;
- margin: 20px 0px;
+ margin: 10px 0px;
}
.caption-one-container {