From 858b38f3a4d5491b3992386b555bac8361ab89e2 Mon Sep 17 00:00:00 2001 From: Aman-Hundal Date: Fri, 23 Aug 2024 13:12:58 -0700 Subject: [PATCH 1/3] Added AC 3 to ticket --- web/src/components/FOI/App.scss | 1 + .../FOI/Home/FOIPPASectionsModal.js | 15 ++++++- web/src/components/FOI/Home/Redlining.js | 41 ++++++++++++++++++- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/web/src/components/FOI/App.scss b/web/src/components/FOI/App.scss index f518f21da..92b7f3fab 100644 --- a/web/src/components/FOI/App.scss +++ b/web/src/components/FOI/App.scss @@ -82,6 +82,7 @@ li.modal-message-list-item { margin: 6px 0; + font-size: 15px; } #state-change-dialog-title .MuiIconButton-root { diff --git a/web/src/components/FOI/Home/FOIPPASectionsModal.js b/web/src/components/FOI/Home/FOIPPASectionsModal.js index e78d83df7..48dab0601 100644 --- a/web/src/components/FOI/Home/FOIPPASectionsModal.js +++ b/web/src/components/FOI/Home/FOIPPASectionsModal.js @@ -32,7 +32,9 @@ export const FOIPPASectionsModal= ({ saveRedaction, defaultSections, saveDefaultSections, - clearDefaultSections + clearDefaultSections, + pageSelectionsContainNRDup, + setMessageModalOpen }) => { const [modalSortNumbered, setModalSortNumbered] = useState(false); @@ -101,6 +103,15 @@ export const FOIPPASectionsModal= ({ return b.count - a.count; } }; + + const handleSelectCodes = () => { + if (editRedacts) { + saveRedactions(); + } else { + saveRedaction(); + } + pageSelectionsContainNRDup ? setMessageModalOpen(true) : setMessageModalOpen(false); + } return( @@ -187,7 +198,7 @@ export const FOIPPASectionsModal= ({