diff --git a/src/Components/Document/ReqEditPage.js b/src/Components/Document/ReqEditPage.js index 7589510..5347e0d 100644 --- a/src/Components/Document/ReqEditPage.js +++ b/src/Components/Document/ReqEditPage.js @@ -60,19 +60,6 @@ const RequestEditPage = () => { ? process.env.REACT_APP_API_DEV : process.env.REACT_APP_API_PROD; - const headerString = - documentType === "interrogatories" ? ( - "Response to Interrogatories" - ) : documentType === "admissions" ? ( - "Response to Request for Admissions" - ) : documentType === "production" ? ( - "Response to Request for Production" - ) : documentType === "combined-numbered" ? ( - "Response to Interrogatories and Request for Production" - ) : ( - <> - ); - useEffect(() => { if (!appUserId || !docId) { setDocument(null); @@ -92,16 +79,15 @@ const RequestEditPage = () => { } getOutgoingRequests(documentId) .then((data) => { - const resp = data[0].requests.map((item, index) => { + const merged = [...foundationRogs, ...data[0].requests]; + const resp = merged.map((item, index) => { // NEVER CHANGE THIS: return { showInputEle: false, text: item.text, index: index }; }); - const merged = [...foundationRogs, ...resp]; - setRequests(merged); + setRequests(resp); }) .catch((err) => console.log(err)); }, [documentId]); - async function getCase(parentCaseId) { try { const docRef = doc(db, "cases", `${parentCaseId}`); @@ -349,16 +335,32 @@ const RequestEditPage = () => { ))} -
+
INTERROGATORIES
{requests?.map((req, i) => ( -
-
{`${i + 1}.`}
-
{req?.text}
+
+ 1 + ? // NEVER CHANGE THIS + req.text + : null + } + setShowInputEle={setShowInputEle} + showInputEle={ + requests && requests.length > 1 + ? requests[i].showInputEle + : null + } + handleFocus={handleFocus} + handleEditValue={handleEditValue} + handleBlur={handleBlur} + i={i} + />
))}
-
+
REQUESTS FOR PRODUCTION
{standardProd?.map((req, i) => (
diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index d4f9b28..a632757 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -35,6 +35,16 @@ margin-bottom: 25px; } +.req-editing-sub-wrapper { + display: flex; + flex-direction: column; + justify-content: center; + margin-left: auto; + margin-right: auto; + margin-bottom: 25px; + min-width: 700px; +} + .doc-editing-instructions-header { font-family: Roboto; text-decoration: underline; @@ -335,8 +345,11 @@ min-width: 24px; margin-right: 6px; } + .outer-div { - border: 1px solid #a9a9a9; + border: 1px solid #d1d1d1; + border-radius: 5px; + border-radius: 10px; padding: 0px 5px; } diff --git a/src/styles/edit-element.scss b/src/styles/edit-element.scss index 8a7c9b1..81ea3bc 100644 --- a/src/styles/edit-element.scss +++ b/src/styles/edit-element.scss @@ -1,5 +1,6 @@ .outer-div { - border: 1px solid black; + border: 1px solid rgb(220, 220, 220); + border-radius: 5px; } .outer-div-after {