more
This commit is contained in:
@@ -11,14 +11,8 @@ import Button from "../../pageElements/Button";
|
||||
import ConfirmModal from "../Modals/ConfirmModal";
|
||||
import LoadingSpinner from "../../pageElements/LoadingSpinner";
|
||||
import { docEditCopy } from "../../Constants/Copy/docEditCopy.js";
|
||||
import { doc, getDoc, updateDoc, increment } from "firebase/firestore";
|
||||
import "../../styles/docedit-page.scss";
|
||||
import {
|
||||
doc,
|
||||
getDoc,
|
||||
updateDoc,
|
||||
onSnapshot,
|
||||
increment,
|
||||
} from "firebase/firestore";
|
||||
|
||||
const DocEditPage = (props) => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { useState } from "react";
|
||||
import Scrollbutton from "react-bootstrap/Button";
|
||||
import { ArrowUp, ArrowDown } from "react-bootstrap-icons";
|
||||
import "../../../styles/captions.scss";
|
||||
|
||||
71
src/Components/Document/captionHeaders/michiganCaption.js
Normal file
71
src/Components/Document/captionHeaders/michiganCaption.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import Scrollbutton from "react-bootstrap/Button";
|
||||
import { ArrowUp, ArrowDown } from "react-bootstrap-icons";
|
||||
|
||||
const MichiganCaption = (props) => {
|
||||
const { fetchedCase, displayCopy, onScrollClick } = props;
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="docedit-super-row">
|
||||
<div className="docedit-uppercol1"></div>
|
||||
<div className="docedit-uppercol2">
|
||||
<span>STATE OF MICHIGAN</span>
|
||||
<span>
|
||||
IN THE CIRCUIT COURT FOR THE COUNTY OF{" "}
|
||||
{fetchedCase?.venu.split(" ")[0]}
|
||||
</span>
|
||||
<div className="pleading-divider-box">
|
||||
<div>
|
||||
-----------------------------------------------------------------------X
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="docedit-uppercol3"></div>
|
||||
</div>
|
||||
<div className="docedit-header-row">
|
||||
<div className="docedit-header-col1">
|
||||
<div className="docedit-header-text">Edit Document</div>
|
||||
</div>
|
||||
<div className="docedit-header-col2">
|
||||
<div className="header-middle-row1">
|
||||
{fetchedCase?.caption ? fetchedCase?.caption : <></>},
|
||||
</div>
|
||||
<div className="header-middle-row2">
|
||||
<div className="content-spacer"></div>
|
||||
<div className="middle-row-inner">
|
||||
<div>Plaintiff(s),</div>
|
||||
<div className="casenum-box">
|
||||
Index no. {fetchedCase?.caseNumber}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="header-middle-row3">
|
||||
<div>{displayCopy.versusText}</div>
|
||||
<div>Judge: {fetchedCase?.judge}</div>
|
||||
</div>
|
||||
<div className="header-middle-row4">
|
||||
{fetchedCase?.captionTwo ? fetchedCase?.captionTwo : <></>},
|
||||
</div>
|
||||
<div className="header-middle-row5">
|
||||
<div className="content-spacer2"></div>
|
||||
<div>Defendant(s)</div>
|
||||
</div>
|
||||
<div className="pleading-divider-box">
|
||||
<div>
|
||||
----------------------------------------------------------------------------X
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="docedit-header-col3">
|
||||
<div className="scroll-button-box">
|
||||
<Scrollbutton onClick={onScrollClick} className="scroll-button">
|
||||
Scroll <ArrowUp /> <ArrowDown />
|
||||
</Scrollbutton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MichiganCaption;
|
||||
@@ -1,4 +1,3 @@
|
||||
import { useState } from "react";
|
||||
import Scrollbutton from "react-bootstrap/Button";
|
||||
import { ArrowUp, ArrowDown } from "react-bootstrap-icons";
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ const CreateModal = ({ setShowModal, caseData }) => {
|
||||
const [data, setData] = useState(
|
||||
getFormDataDefaults(fields, isEditing ? caseData : undefined)
|
||||
);
|
||||
console.log("state in create modal", state);
|
||||
|
||||
const courtsList = state === "mi" ? michiganCourts : floridaCourts;
|
||||
function selectVenueValues(data) {
|
||||
const result = courtsList.filter((court) => {
|
||||
@@ -58,7 +58,7 @@ const CreateModal = ({ setShowModal, caseData }) => {
|
||||
const handleChangeInput = (e, name) => {
|
||||
let venArr;
|
||||
const newData = handleFormDataChange(e, name, data, fields);
|
||||
if (state === "fl") {
|
||||
if (state === "fl" || state === "mi") {
|
||||
venArr = selectVenueValues(newData);
|
||||
}
|
||||
|
||||
|
||||
@@ -236,8 +236,8 @@ const UploadModal = (props) => {
|
||||
<Modal.Body>
|
||||
<div className="modal-header-text-wrapper">
|
||||
<p className="upload-modal-header-text">
|
||||
Select a .pdf file for upload, then 1. enter title, and 2. choose
|
||||
document type (other fields optional).
|
||||
1, Enter document title, (i.e. Plaintiff's Interrogatories). 2.
|
||||
Click or drag and drop the .psf file.
|
||||
</p>
|
||||
<p className="upload-modal-header-text">
|
||||
The document created will be associated with{" "}
|
||||
|
||||
@@ -122,356 +122,241 @@ export const floridaCourts = [
|
||||
export const michiganCourts = [
|
||||
{
|
||||
circuit: "1st",
|
||||
counties: ["Hillsdale"],
|
||||
counties: ["Hillsdale County"],
|
||||
},
|
||||
{
|
||||
circuit: "2nd",
|
||||
counties: ["Berrien"],
|
||||
counties: ["Berrien County"],
|
||||
},
|
||||
{
|
||||
circuit: "3rd",
|
||||
counties: ["Wayne"],
|
||||
counties: ["Wayne County"],
|
||||
},
|
||||
{
|
||||
circuit: "4th",
|
||||
counties: ["Jackson"],
|
||||
counties: ["Jackson County"],
|
||||
},
|
||||
{
|
||||
circuit: "5th",
|
||||
counties: ["Barry"],
|
||||
counties: ["Barry County"],
|
||||
},
|
||||
{
|
||||
circuit: "6th",
|
||||
counties: ["Oakland"],
|
||||
counties: ["Oakland County"],
|
||||
},
|
||||
{
|
||||
circuit: "7th",
|
||||
counties: ["Genesee"],
|
||||
counties: ["Genesee County"],
|
||||
},
|
||||
{
|
||||
circuit: "8th",
|
||||
counties: ["Ionia", "Montcalm"],
|
||||
counties: ["Ionia County", "Montcalm County"],
|
||||
},
|
||||
{
|
||||
circuit: "9th",
|
||||
counties: ["Kalamazoo"],
|
||||
counties: ["Kalamazoo County"],
|
||||
},
|
||||
{
|
||||
circuit: "10th",
|
||||
counties: ["Saginaw"],
|
||||
counties: ["Saginaw County"],
|
||||
},
|
||||
{
|
||||
circuit: "11th",
|
||||
counties: ["Alger", "Luce", "Mackinac", "Schoolcraft"],
|
||||
counties: [
|
||||
"Alger County",
|
||||
"Luce County",
|
||||
"Mackinac County",
|
||||
"Schoolcraft County",
|
||||
],
|
||||
},
|
||||
{
|
||||
circuit: "12th",
|
||||
counties: ["Baraga", "Houghton", "Keweenaw"],
|
||||
counties: ["Baraga County", "Houghton County", "Keweenaw County"],
|
||||
},
|
||||
{
|
||||
circuit: "13th",
|
||||
counties: ["Antrim", "Leelanau", "Grand Traverse"],
|
||||
counties: ["Antrim County", "Leelanau County", "Grand Traverse County"],
|
||||
},
|
||||
{
|
||||
circuit: "14th",
|
||||
counties: ["Muskegon"],
|
||||
counties: ["Muskegon County"],
|
||||
},
|
||||
{
|
||||
circuit: "15th",
|
||||
counties: ["Branch"],
|
||||
counties: ["Branch County"],
|
||||
},
|
||||
{
|
||||
circuit: "16th",
|
||||
counties: ["Macomb"],
|
||||
counties: ["Macomb County"],
|
||||
},
|
||||
{
|
||||
circuit: "17th",
|
||||
counties: ["Kent"],
|
||||
counties: ["Kent County"],
|
||||
},
|
||||
{
|
||||
circuit: "18th",
|
||||
counties: ["Bay"],
|
||||
counties: ["Bay County"],
|
||||
},
|
||||
{
|
||||
circuit: "19th",
|
||||
counties: ["Benzie", "Manistee"],
|
||||
counties: ["Benzie County", "Manistee County"],
|
||||
},
|
||||
{
|
||||
circuit: "20th",
|
||||
counties: ["Ottawa"],
|
||||
counties: ["Ottawa County"],
|
||||
},
|
||||
{
|
||||
circuit: "21st",
|
||||
counties: ["Isabella"],
|
||||
counties: ["Isabella County"],
|
||||
},
|
||||
{
|
||||
circuit: "22nd",
|
||||
counties: ["Washtenaw"],
|
||||
counties: ["Washtenaw County"],
|
||||
},
|
||||
{
|
||||
circuit: "23rd",
|
||||
counties: ["Alcona", "Arenac", "Iosco", "Oscoda"],
|
||||
counties: [
|
||||
"Alcona County",
|
||||
"Arenac County",
|
||||
"Iosco County",
|
||||
"Oscoda County",
|
||||
],
|
||||
},
|
||||
{
|
||||
circuit: "24th",
|
||||
counties: ["Sanilac"],
|
||||
counties: ["Sanilac County"],
|
||||
},
|
||||
{
|
||||
circuit: "25th",
|
||||
counties: ["Marquette"],
|
||||
counties: ["Marquette County"],
|
||||
},
|
||||
{
|
||||
circuit: "26th",
|
||||
counties: ["Alpena", "Montmorency"],
|
||||
counties: ["Alpena County", "Montmorency County"],
|
||||
},
|
||||
{
|
||||
circuit: "27th",
|
||||
counties: ["Lake", "Newaygo"],
|
||||
counties: ["Lake County", "Newaygo County"],
|
||||
},
|
||||
{
|
||||
circuit: "28th",
|
||||
counties: ["Missaukee", "Wexford"],
|
||||
counties: ["Missaukee County", "Wexford County"],
|
||||
},
|
||||
{
|
||||
circuit: "29th",
|
||||
counties: ["Clinton", "Gratiot"],
|
||||
counties: ["Clinton County", "Gratiot County"],
|
||||
},
|
||||
{
|
||||
circuit: "30th",
|
||||
counties: ["Ingham"],
|
||||
counties: ["Ingham County"],
|
||||
},
|
||||
{
|
||||
circuit: "31st",
|
||||
counties: ["St. Clair"],
|
||||
counties: ["St. Clair County"],
|
||||
},
|
||||
{
|
||||
circuit: "32nd",
|
||||
counties: ["Gogebic", "Ontonagon"],
|
||||
counties: ["Gogebic County", "Ontonagon County"],
|
||||
},
|
||||
{
|
||||
circuit: "33rd",
|
||||
counties: ["Charlevoix"],
|
||||
counties: ["Charlevoix County"],
|
||||
},
|
||||
{
|
||||
circuit: "34th",
|
||||
counties: ["Ogemaw", "Roscommon"],
|
||||
counties: ["Ogemaw County", "Roscommon County"],
|
||||
},
|
||||
{
|
||||
circuit: "35th",
|
||||
counties: ["Shiawasee"],
|
||||
counties: ["Shiawasee County"],
|
||||
},
|
||||
{
|
||||
circuit: "36th",
|
||||
counties: ["Van Buren"],
|
||||
counties: ["Van Buren County"],
|
||||
},
|
||||
{
|
||||
circuit: "37th",
|
||||
counties: ["Calhoum"],
|
||||
counties: ["Calhoum County"],
|
||||
},
|
||||
{
|
||||
circuit: "38th",
|
||||
counties: ["Monroe"],
|
||||
counties: ["Monroe County"],
|
||||
},
|
||||
{
|
||||
circuit: "39th",
|
||||
counties: ["Lenawee"],
|
||||
counties: ["Lenawee County"],
|
||||
},
|
||||
{
|
||||
circuit: "40th",
|
||||
counties: ["Lapeer"],
|
||||
counties: ["Lapeer County"],
|
||||
},
|
||||
{
|
||||
circuit: "41st",
|
||||
counties: ["Dickinson", "Iron", "Menominee"],
|
||||
counties: ["Dickinson County", "Iron County", "Menominee County"],
|
||||
},
|
||||
{
|
||||
circuit: "42nd",
|
||||
counties: ["Midland"],
|
||||
counties: ["Midland County"],
|
||||
},
|
||||
{
|
||||
circuit: "43rd",
|
||||
counties: ["Cass"],
|
||||
counties: ["Cass County"],
|
||||
},
|
||||
{
|
||||
circuit: "44th",
|
||||
counties: ["Livingston"],
|
||||
counties: ["Livingston County"],
|
||||
},
|
||||
{
|
||||
circuit: "45th",
|
||||
counties: ["St. Joseph"],
|
||||
counties: ["St. Joseph County"],
|
||||
},
|
||||
{
|
||||
circuit: "45th",
|
||||
counties: ["St. Joseph"],
|
||||
counties: ["St. Joseph County"],
|
||||
},
|
||||
{
|
||||
circuit: "46th",
|
||||
counties: ["Crawford", "Kalkaska", "Otsego"],
|
||||
counties: ["Crawford County", "Kalkaska County", "Otsego County"],
|
||||
},
|
||||
{
|
||||
circuit: "47th",
|
||||
counties: ["Delta"],
|
||||
counties: ["Delta County"],
|
||||
},
|
||||
{
|
||||
circuit: "49th",
|
||||
counties: ["Mecosta", "Osceoloa"],
|
||||
counties: ["Mecosta County", "Osceoloa County"],
|
||||
},
|
||||
{
|
||||
circuit: "51st",
|
||||
counties: ["Mason", "Oceana"],
|
||||
counties: ["Mason County", "Oceana County"],
|
||||
},
|
||||
{
|
||||
circuit: "52nd",
|
||||
counties: ["Huron"],
|
||||
counties: ["Huron County"],
|
||||
},
|
||||
{
|
||||
circuit: "53rd",
|
||||
counties: ["Cheboygan", "Presque Isle"],
|
||||
counties: ["Cheboygan County", "Presque Isle County"],
|
||||
},
|
||||
{
|
||||
circuit: "55th",
|
||||
counties: ["Tuscola"],
|
||||
counties: ["Tuscola County"],
|
||||
},
|
||||
{
|
||||
circuit: "55th",
|
||||
counties: ["Clare", "Gladwin"],
|
||||
counties: ["Clare County", "Gladwin County"],
|
||||
},
|
||||
{
|
||||
circuit: "56th",
|
||||
counties: ["Eaton"],
|
||||
counties: ["Eaton County"],
|
||||
},
|
||||
{
|
||||
circuit: "57th",
|
||||
counties: ["Emmet"],
|
||||
counties: ["Emmet County"],
|
||||
},
|
||||
{
|
||||
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: [""],
|
||||
counties: ["Chippewa County"],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ const TextInput = (props) => {
|
||||
type,
|
||||
disabled,
|
||||
} = props;
|
||||
const isFlorida = state === "fl";
|
||||
const isObject = state === "fl" || state === "mi";
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -43,7 +43,7 @@ const TextInput = (props) => {
|
||||
onChange={onChange}
|
||||
>
|
||||
<option
|
||||
id="ddlProducts"
|
||||
id="input-select-option"
|
||||
className={`select-option`}
|
||||
value=""
|
||||
></option>
|
||||
@@ -54,7 +54,7 @@ const TextInput = (props) => {
|
||||
className={`select-option`}
|
||||
key={`item${i}`}
|
||||
>
|
||||
{isFlorida ? `${item.circuit} Judicial Circuit` : item}
|
||||
{isObject ? `${item.circuit} Judicial Circuit` : item}
|
||||
</option>
|
||||
))
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user