From b39aa4843d0629680e6d3886632ef0b2ae9a5618 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 31 Jan 2024 13:37:08 -0600 Subject: [PATCH] more --- src/Components/Case/CaseTypePage.js | 329 ++++++++++++++++------------ src/styles/case-type-page.scss | 7 - src/styles/casetype-page.scss | 14 ++ 3 files changed, 197 insertions(+), 153 deletions(-) delete mode 100644 src/styles/case-type-page.scss create mode 100644 src/styles/casetype-page.scss diff --git a/src/Components/Case/CaseTypePage.js b/src/Components/Case/CaseTypePage.js index be7575d..5b0ffbf 100644 --- a/src/Components/Case/CaseTypePage.js +++ b/src/Components/Case/CaseTypePage.js @@ -22,6 +22,7 @@ import { createCaseAdditionalFields as fields } from "../../Constants/Fields/Cre import { objectMap } from "../../Utils/Object"; import { Typeahead } from "react-bootstrap-typeahead"; import { caseTags } from "../../Constants/Tags/CaseTags"; +import "../../styles/casetype-page.scss"; const CaseTypePage = ({ caseData }) => { const { caseId } = useParams(); @@ -110,158 +111,194 @@ const CaseTypePage = ({ caseData }) => { return (
-
-
Additional Case Details
-
-
- - -
-
-
Case type
- { - let item = null; - for (const currentItem of selected) { - item = { ...currentItem }; - } - setSelectedTag(item); - typeaheadRef.current.clear(); - }} - /> -
- {selectedCaseTags.map((tag, i) => ( -
-
-
-
x
-
-
{tag}
-
-
- ))} + + + + {isEditing ? ( +
Case Type
+ ) : ( + <> + )} + { + let item = null; + for (const currentItem of selected) { + item = { ...currentItem }; + } + setSelectedTag(item); + typeaheadRef.current.clear(); + }} + /> +
+ {selectedCaseTags.map((tag, i) => ( +
+
+
+
x
+
+
{tag}
+ ))} +
+ + + {isEditing ? ( +
Position
+ ) : ( + <> + )} + +
+ + + {isEditing ? ( +
Lead Attorney
+ ) : ( + <> + )} + handleChangeInput(e, "leadAttorneys")} + label={ + data.leadAttorneys.value.length === 0 + ? isEditing + ? caseData.leadAttorneys + : "Lead Attornery(s)" + : "" + } + /> + + + {isEditing ? ( +
Billing code
+ ) : ( + <> + )} + handleChangeInput(e, "billingCode")} + label={ + data.billingCode.value.length === 0 + ? isEditing + ? caseData.billingCode + : "Billing Code" + : "" + } + /> + +
+ + + {isEditing ? ( +
Contact Name
+ ) : ( + <> + )} + handleChangeInput(e, "contactLastName")} + label={ + data.contactName.value.length === 0 + ? isEditing + ? caseData.contactName + : "Contact Name" + : "" + } + /> + + + {isEditing ? ( +
Contact email
+ ) : ( + <> + )} + handleChangeInput(e, "contactEmail")} + label={ + data.contactEmail.value.length === 0 + ? isEditing + ? caseData.contactEmail + : "Contact Email" + : "" + } + /> + +
+ +
+ ); +}; -
- { + let item = null; + for (const currentItem of selected) { + item = { ...currentItem }; + } + setSelectedTag(item); + typeaheadRef.current.clear(); + }} + /> +
+ {selectedCaseTags.map((tag, i) => ( +
+
+
+
x
+
+
{tag}
+
+
+ ))} +
+ + + + handleChangeInput(e, "clientPosition")} /> -
-
- - - - - {isEditing ? ( -
Lead Attorney
- ) : ( - <> - )} - handleChangeInput(e, "leadAttorneys")} - label={ - data.leadAttorneys.value.length === 0 - ? isEditing - ? caseData.leadAttorneys - : "Lead Attornery(s)" - : "" - } - /> - - - {isEditing ? ( -
Billing code
- ) : ( - <> - )} - handleChangeInput(e, "billingCode")} - label={ - data.billingCode.value.length === 0 - ? isEditing - ? caseData.billingCode - : "Billing Code" - : "" - } - /> - -
- - - {isEditing ? ( -
Contact Name
- ) : ( - <> - )} - handleChangeInput(e, "contactLastName")} - label={ - data.contactName.value.length === 0 - ? isEditing - ? caseData.contactName - : "Contact Name" - : "" - } - /> - - - {isEditing ? ( -
Contact email
- ) : ( - <> - )} - handleChangeInput(e, "contactEmail")} - label={ - data.contactEmail.value.length === 0 - ? isEditing - ? caseData.contactEmail - : "Contact Email" - : "" - } - /> - -
- -
-
- ); -}; - -export default CaseTypePage; + + */ diff --git a/src/styles/case-type-page.scss b/src/styles/case-type-page.scss deleted file mode 100644 index 0cf5261..0000000 --- a/src/styles/case-type-page.scss +++ /dev/null @@ -1,7 +0,0 @@ -.casetype-container { - display: flex; - flex-direction: column; - margin-right: auto; - margin-left: auto; - align-items: center; -} diff --git a/src/styles/casetype-page.scss b/src/styles/casetype-page.scss new file mode 100644 index 0000000..e61ee49 --- /dev/null +++ b/src/styles/casetype-page.scss @@ -0,0 +1,14 @@ +.casetype-container { + display: flex; + flex-direction: column; + align-items: center; +} + +.casetype-form { + width: 100%; +} +.case-tag-container { + display: flex; + background-color: red; + height: 300px; +}