From 8a8c5124d94d03d5a145876f75886175a96e821d Mon Sep 17 00:00:00 2001 From: Roslyn Wythe Date: Thu, 5 Sep 2024 00:05:50 -0700 Subject: [PATCH 1/5] Implement filtering by Name, Address, Alt# and Created By Columns --- .../ProjectTableColumnHeader.js | 3 +++ .../Projects/ColumnHeaderPopups/TextPopup.js | 27 ++++++++++++++++--- .../src/components/Projects/ProjectsPage.js | 6 +++++ 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/client/src/components/Projects/ColumnHeaderPopups/ProjectTableColumnHeader.js b/client/src/components/Projects/ColumnHeaderPopups/ProjectTableColumnHeader.js index fc42f0ef..677f7b14 100644 --- a/client/src/components/Projects/ColumnHeaderPopups/ProjectTableColumnHeader.js +++ b/client/src/components/Projects/ColumnHeaderPopups/ProjectTableColumnHeader.js @@ -9,6 +9,7 @@ import VisibilityPopup from "./VisibilityPopup"; import StatusPopup from "./StatusPopup"; const ProjectTableColumnHeader = ({ + uniqueValues, header, criteria, setCriteria, @@ -70,6 +71,7 @@ const ProjectTableColumnHeader = ({ /> ) : header.popupType === "text" ? (
- + + */} + {/* { setNewSearchString(e.target.value); }} value={newSearchString} - /> - + /> */} + ({ + value: text, + label: text + }))} + onChange={e => { + setNewSearchString(e.value); + }} + defaultValue={newSearchString} + styles={{ maxHeight: 200 }} + placeholder="Search by Keyword" + >