From 208596afdf1bd6dc8b92a01babdd6c21f4847c84 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 26 May 2024 22:24:56 -0500 Subject: [PATCH] More --- src/Components/Document/DocEditPage.js | 13 +++++++++- .../captionHeaders/michiganCaption.js | 19 +++++--------- src/Constants/Copy/docEditCopy.js | 25 +++++++++++++++++++ src/styles/docedit-page.scss | 9 +++++++ 4 files changed, 52 insertions(+), 14 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index 9a818ce..a6e692e 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -2,6 +2,7 @@ import { useState, useContext, useEffect } from "react"; import NewYorkCaption from "./captionHeaders/newYorkCaption.js"; import NewJerseyCaption from "./captionHeaders/newJerseyCaption.js"; import FloridaCaption from "./captionHeaders/floridaCaption.js"; +import MichiganCaption from "./captionHeaders/michiganCaption.js"; import { useParams } from "react-router-dom"; import { Link, useNavigate } from "react-router-dom"; import EditElement from "../../pageElements/EditElement"; @@ -58,9 +59,11 @@ const DocEditPage = (props) => { const displayCopy = state === "ny" ? docEditCopy.NewYork + : state === "mi" + ? docEditCopy.Michigan : state === "nj" ? docEditCopy.NewJersey - : docEditCopy.NewYork; + : docEditCopy.NewJersey; const headerPicker = () => { switch (state) { @@ -88,6 +91,14 @@ const DocEditPage = (props) => { onScrollClick={onScrollClick} /> ); + case "mi": + return ( + + ); default: return ( { <>
-
+
STATE OF MICHIGAN IN THE CIRCUIT COURT FOR THE COUNTY OF{" "} - {fetchedCase?.venu.split(" ")[0]} + {fetchedCase?.venue.split(" ")[0].toUpperCase()} -
-
- -----------------------------------------------------------------------X -
-
@@ -26,7 +21,7 @@ const MichiganCaption = (props) => {
Edit Document
-
+
{fetchedCase?.caption ? fetchedCase?.caption : <>},
@@ -35,13 +30,13 @@ const MichiganCaption = (props) => {
Plaintiff(s),
- Index no. {fetchedCase?.caseNumber} + Case No. {fetchedCase?.caseNumber}
{displayCopy.versusText}
-
Judge: {fetchedCase?.judge}
+
Hon. {fetchedCase?.judge}
{fetchedCase?.captionTwo ? fetchedCase?.captionTwo : <>}, @@ -51,9 +46,7 @@ const MichiganCaption = (props) => {
Defendant(s)
-
- ----------------------------------------------------------------------------X -
+
__________________________________________________/
diff --git a/src/Constants/Copy/docEditCopy.js b/src/Constants/Copy/docEditCopy.js index 8861ccf..28d7d31 100644 --- a/src/Constants/Copy/docEditCopy.js +++ b/src/Constants/Copy/docEditCopy.js @@ -55,6 +55,31 @@ export const docEditCopy = { caseNumber: "Docket No.", versusText: "vs.", }, + Michigan: { + prelimaryStatement: function (documentType, respondent, servingParty) { + const docCopy = + documentType && documentType === "interrogatories" + ? "Interrogatories" + : documentType && documentType === "admissions" + ? "Request for Admissions" + : documentType && documentType === "production" + ? "Request for Production" + : documentType && documentType.includes("combined") + ? "Interrogatories and Request for Production" + : null; + + const copyString = `COMES NOW, Respondent(s), ${respondent}, through counsel, in response to the ${docCopy} + served by ${servingParty}, and states as follows:`; + + return ( +
+

{copyString}

+
+ ); + }, + caseNumber: "Case No.", + versusText: "v.", + }, }; export const outgoingComesNow = (state, fetchedCase) => { diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index cd3b4fb..2265071 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -248,6 +248,15 @@ color: #373737; } +.centered-text { + text-align: center; + margin-bottom: 30px; +} + +.plain-text { + font-weight: 400 !important; +} + .docedit-uppercol2 { display: flex; flex-direction: column;