From 4da6640e711f7ec19612f4de67a2a5fac6737f31 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 26 May 2024 20:28:34 -0500 Subject: [PATCH] more --- src/Components/Modals/CreateModal.js | 3 +- src/Constants/Fields/CreateCaseFields.js | 264 +++++++++++++++++++++++ 2 files changed, 266 insertions(+), 1 deletion(-) diff --git a/src/Components/Modals/CreateModal.js b/src/Components/Modals/CreateModal.js index 7957591..988a427 100644 --- a/src/Components/Modals/CreateModal.js +++ b/src/Components/Modals/CreateModal.js @@ -40,6 +40,7 @@ const CreateModal = ({ setShowModal, caseData }) => { const [data, setData] = useState( getFormDataDefaults(fields, isEditing ? caseData : undefined) ); + console.log("state in create modal", state); function selectVenueValues(data) { const result = floridaCourts.filter((court) => { @@ -265,7 +266,7 @@ const CreateModal = ({ setShowModal, caseData }) => { name={"venue"} value={data.venue.value} error={data.venue.error} - type={state === "fl" ? "select" : "text"} + type={state === "fl" || state === "mi" ? "select" : "text"} values={venueArray} message={data.venue.message} disabled={isBusy} diff --git a/src/Constants/Fields/CreateCaseFields.js b/src/Constants/Fields/CreateCaseFields.js index a7850ba..9ecfe97 100644 --- a/src/Constants/Fields/CreateCaseFields.js +++ b/src/Constants/Fields/CreateCaseFields.js @@ -119,6 +119,270 @@ export const floridaCourts = [ }, ]; +const michiganCourts = [ + { + circuit: "1st", + counties: ["Hillsdale"], + }, + { + circuit: "2nd", + counties: ["Berrien"], + }, + { + circuit: "4th", + counties: ["Jackson"], + }, + { + circuit: "5th", + counties: ["Barry"], + }, + { + circuit: "7th", + counties: ["Genesee"], + }, + { + circuit: "8th", + counties: ["Ionia"], + }, + { + circuit: "9th", + counties: ["Kalamazoo"], + }, + { + circuit: "11th", + counties: ["Alger"], + }, + { + circuit: "12th", + counties: ["Baraga", "Houghton", "Keweenaw"], + }, + { + circuit: "13th", + counties: ["Antrim", "Grand Traverse"], + }, + { + circuit: "15th", + counties: ["Branch"], + }, + { + circuit: "17th", + counties: ["Kent"], + }, + { + circuit: "18th", + counties: ["Bay"], + }, + { + circuit: "19th", + counties: ["Benzie"], + }, + { + circuit: "21st", + counties: ["Isabella"], + }, + { + circuit: "23rd", + counties: ["Alcona", "Arenac", "Iosco"], + }, + { + circuit: "26th", + counties: ["Alpena"], + }, + { + circuit: "27th", + counties: ["Lake"], + }, + { + circuit: "29th", + counties: ["Clinton", "Gratiot"], + }, + { + circuit: "30th", + counties: ["Ingham"], + }, + { + circuit: "32nd", + counties: ["Gogebic"], + }, + { + circuit: "33rd", + counties: ["Charlevoix"], + }, + { + circuit: "37th", + counties: ["Calhoum"], + }, + { + circuit: "40th", + counties: ["Lapeer"], + }, + { + circuit: "41st", + counties: ["Dickinson", "Iron"], + }, + { + circuit: "43rd", + counties: ["Cass"], + }, + { + circuit: "46th", + counties: ["Crawford", "Kalkaska"], + }, + { + circuit: "47th", + counties: ["Delta"], + }, + { + circuit: "52nd", + counties: ["Huron"], + }, + { + circuit: "53rd", + counties: ["Cheboygan"], + }, + { + circuit: "55th", + counties: ["Clare", "Gladwin"], + }, + { + circuit: "56th", + counties: ["Eaton"], + }, + { + circuit: "57th", + counties: ["Emmet"], + }, + { + circuit: "50th", + counties: ["Chippewa"], + }, + + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, + { + circuit: "", + counties: [""], + }, +]; + export const newYorkCounties = [ { name: "Albany County" }, { name: "Allegany County" },