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