more
This commit is contained in:
@@ -40,6 +40,7 @@ const CreateModal = ({ setShowModal, caseData }) => {
|
|||||||
const [data, setData] = useState(
|
const [data, setData] = useState(
|
||||||
getFormDataDefaults(fields, isEditing ? caseData : undefined)
|
getFormDataDefaults(fields, isEditing ? caseData : undefined)
|
||||||
);
|
);
|
||||||
|
console.log("state in create modal", state);
|
||||||
|
|
||||||
function selectVenueValues(data) {
|
function selectVenueValues(data) {
|
||||||
const result = floridaCourts.filter((court) => {
|
const result = floridaCourts.filter((court) => {
|
||||||
@@ -265,7 +266,7 @@ const CreateModal = ({ setShowModal, caseData }) => {
|
|||||||
name={"venue"}
|
name={"venue"}
|
||||||
value={data.venue.value}
|
value={data.venue.value}
|
||||||
error={data.venue.error}
|
error={data.venue.error}
|
||||||
type={state === "fl" ? "select" : "text"}
|
type={state === "fl" || state === "mi" ? "select" : "text"}
|
||||||
values={venueArray}
|
values={venueArray}
|
||||||
message={data.venue.message}
|
message={data.venue.message}
|
||||||
disabled={isBusy}
|
disabled={isBusy}
|
||||||
|
|||||||
@@ -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 = [
|
export const newYorkCounties = [
|
||||||
{ name: "Albany County" },
|
{ name: "Albany County" },
|
||||||
{ name: "Allegany County" },
|
{ name: "Allegany County" },
|
||||||
|
|||||||
Reference in New Issue
Block a user