This commit is contained in:
Kenneth Jannette
2024-03-09 08:22:11 -06:00
parent f6da085928
commit e354515255
6 changed files with 50 additions and 47 deletions

View File

@@ -59,33 +59,23 @@ export const docEditCopy = {
export const outgoingComesNow = (state, fetchedCase) => {
let copyString;
const position = fetchedCase ? fetchedCase?.clientPosition : <></>;
const parties = fetchedCase ? (
fetchedCase?.clientPosition === "Plaintiff" ? (
fetchedCase?.plaintiffParties
) : (
fetchedCase?.defendantParties
)
) : (
<></>
);
const adversary = fetchedCase ? (
fetchedCase?.clientPosition === "Plaintiff" ? (
fetchedCase?.defendantParties
) : (
fetchedCase?.plaintiffParties
)
) : (
<></>
);
const servingParty =
fetchedCase?.clientPosition === "Plaintiff"
? fetchedCase?.plaintiffParties
: fetchedCase?.defendantParties;
const respondingParty =
servingParty === fetchedCase?.plaintiffParties
? fetchedCase?.defendantParties
: fetchedCase?.plaintiffParties;
if (state === "ny") {
copyString = `COMES NOW, ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered under oath, in writing, in accordance with NY CPLR 3120 - 3130.`;
copyString = `COMES NOW, ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered under oath, in writing, in accordance with NY CPLR 3120 - 3130.`;
} else if (state === "fl") {
copyString = `COMES NOW, ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered to be answered under oath, in writing, in accordance with Rule 1.340, Florida Rules of Civil Procedure.`;
copyString = `COMES NOW, ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered to be answered under oath, in writing, in accordance with Rule 1.340, Florida Rules of Civil Procedure.`;
} else if (state === "nj") {
copyString =
`Comes now ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered to be answered under oath, in writing, in accordance with NJ R. 4:17-1 - 4:18-1,` +
`Comes now ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered to be answered under oath, in writing, in accordance with NJ R. 4:17-1 - 4:18-1,` +
<div className="jersey-itals">et. seq.</div> +
`All questions must be answered unless the court otherwise orders or unless a claim of privilege or protective order is made in accordance with R. 4:17-1(b)(3).`;
}