more
This commit is contained in:
@@ -11,7 +11,10 @@ import { AppContext } from "../../Hooks/useContext/appContext.js";
|
|||||||
import { db } from "../../firebase";
|
import { db } from "../../firebase";
|
||||||
import { objectMap } from "../../Utils/Object";
|
import { objectMap } from "../../Utils/Object";
|
||||||
import { createCaseFields as fields } from "../../Constants/Fields/CreateCaseFields.js";
|
import { createCaseFields as fields } from "../../Constants/Fields/CreateCaseFields.js";
|
||||||
import { floridaCourts } from "../../Constants/Fields/CreateCaseFields.js";
|
import {
|
||||||
|
floridaCourts,
|
||||||
|
newYorkCounties,
|
||||||
|
} from "../../Constants/Fields/CreateCaseFields.js";
|
||||||
import "../../styles/modals.scss";
|
import "../../styles/modals.scss";
|
||||||
import {
|
import {
|
||||||
getFormDataDefaults,
|
getFormDataDefaults,
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const UploadModal = (props) => {
|
|||||||
|
|
||||||
async function uploadFile(file) {
|
async function uploadFile(file) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${apiUrl}/parseNewDoc`, {
|
const response = await fetch(`${apiUrl}/v1/parseNewDoc`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: file,
|
body: file,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -118,3 +118,68 @@ export const floridaCourts = [
|
|||||||
counties: ["Charlotte", "Collier", "Glades", "Hendry", "Lee"],
|
counties: ["Charlotte", "Collier", "Glades", "Hendry", "Lee"],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const newYorkCounties = [
|
||||||
|
{ name: "Albany County" },
|
||||||
|
{ name: "Allegany County" },
|
||||||
|
{ name: "Bronx County" },
|
||||||
|
{ name: "Broome County" },
|
||||||
|
{ name: "Cattaraugus County" },
|
||||||
|
{ name: "Cayuga County" },
|
||||||
|
{ name: "Chautauqua County" },
|
||||||
|
{ name: "Chemung County" },
|
||||||
|
{ name: "Chenango County" },
|
||||||
|
{ name: "Clinton County" },
|
||||||
|
{ name: "Columbia County" },
|
||||||
|
{ name: "Cortland County" },
|
||||||
|
{ name: "Delaware County" },
|
||||||
|
{ name: "Dutchess County" },
|
||||||
|
{ name: "Erie County" },
|
||||||
|
{ name: "Essex County" },
|
||||||
|
{ name: "Franklin County" },
|
||||||
|
{ name: "Fulton County" },
|
||||||
|
{ name: "Genesee County" },
|
||||||
|
{ name: "Greene County" },
|
||||||
|
{ name: "Hamilton County" },
|
||||||
|
{ name: "Herkimer County" },
|
||||||
|
{ name: "Jefferson County" },
|
||||||
|
{ name: "Kings County" },
|
||||||
|
{ name: "Lewis County" },
|
||||||
|
{ name: "Livingston County" },
|
||||||
|
{ name: "Madison County" },
|
||||||
|
{ name: "Monroe County" },
|
||||||
|
{ name: "Montgomery County" },
|
||||||
|
{ name: "Nassau County" },
|
||||||
|
{ name: "New York County " },
|
||||||
|
{ name: "Niagara County" },
|
||||||
|
{ name: "Oneida County" },
|
||||||
|
{ name: "Onondaga County" },
|
||||||
|
{ name: "Ontario County" },
|
||||||
|
{ anme: "Orange County" },
|
||||||
|
{ name: "Orleans County" },
|
||||||
|
{ name: "Oswego County" },
|
||||||
|
{ name: "Otsego County" },
|
||||||
|
{ name: "Putnam County" },
|
||||||
|
{ name: "Queens County" },
|
||||||
|
{ name: "Rensselaer County" },
|
||||||
|
{ name: "Richmond County" },
|
||||||
|
{ name: "Rockland County" },
|
||||||
|
{ name: "Saint Lawrence County" },
|
||||||
|
{ name: "Saratoga County" },
|
||||||
|
{ name: "Schenectady County" },
|
||||||
|
{ name: "Schoharie County" },
|
||||||
|
{ name: "Schuyler County" },
|
||||||
|
{ name: "Seneca County" },
|
||||||
|
{ name: "Steuben County" },
|
||||||
|
{ name: "Suffolk County" },
|
||||||
|
{ name: "Sullivan County" },
|
||||||
|
{ name: "Tioga County" },
|
||||||
|
{ name: "Tompkins County" },
|
||||||
|
{ name: "Ulster County" },
|
||||||
|
{ name: "Warren County" },
|
||||||
|
{ name: "Washington County" },
|
||||||
|
{ name: "Wayne County" },
|
||||||
|
{ name: "Westchester County" },
|
||||||
|
{ name: "Wyoming County" },
|
||||||
|
{ name: "Yates County" },
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user