From 5c111785db0ed8751f357941a4bf654b752b1c02 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 31 Jan 2024 11:13:00 -0600 Subject: [PATCH] more --- src/Components/Modals/CreateModal.js | 44 +++++++--------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/src/Components/Modals/CreateModal.js b/src/Components/Modals/CreateModal.js index d5e341f..2a9fe76 100644 --- a/src/Components/Modals/CreateModal.js +++ b/src/Components/Modals/CreateModal.js @@ -365,51 +365,29 @@ const CreateModal = ({ setShowModal, caseData }) => { {isEditing ? ( -
Contast first name
+
Contact name
) : ( <> )} handleChangeInput(e, "contactFirstName")} + onChange={(e) => handleChangeInput(e, "contactName")} label={ - data.contactFirstName.value.length === 0 + data.contactName.value.length === 0 ? isEditing - ? caseData.contactFirstName - : "Contact First Name" + ? caseData.contactName + : "Contact Name" : "" } /> - - {isEditing ? ( -
Contact last name
- ) : ( - <> - )} - handleChangeInput(e, "contactLastName")} - label={ - data.contactLastName.value.length === 0 - ? isEditing - ? caseData.contactLastName - : "Contact Last Name" - : "" - } - /> - +