From 9220cdf81ca455a066dd504e5840f86315c8c660 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 19 Feb 2024 22:03:45 -0600 Subject: [PATCH] more --- src/Components/Document/DocumentListPage.js | 15 ++++++++++++--- src/styles/doclist-page.scss | 16 ++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/Components/Document/DocumentListPage.js b/src/Components/Document/DocumentListPage.js index 7f36d4a..6f62ddd 100644 --- a/src/Components/Document/DocumentListPage.js +++ b/src/Components/Document/DocumentListPage.js @@ -16,6 +16,7 @@ import { } from "firebase/firestore"; import ListPagination from "../../pageElements/ListPagination"; import ConfirmModal from "../Modals/ConfirmModal"; +import Toggle from "../../pageElements/Toggle"; import "../../styles/doclist-page.scss"; const DocumentListPage = ({ perPage }) => { @@ -36,7 +37,7 @@ const DocumentListPage = ({ perPage }) => { const [isBusy, setIsBusy] = useState(false); const [selectedDocumentType, setSelectedDocumentType] = useState(); const [showModal, setShowModal] = useState(false); - + const [responseVerbosity, setResponseVerbosity] = useState(""); const apiUrl = process.env.NODE_ENV === "development" ? process.env.REACT_APP_API_DEV @@ -151,6 +152,10 @@ const DocumentListPage = ({ perPage }) => { ); } + const handleToggle = () => { + console.log(" "); + }; + function handleCancelDelete() { if (!isBusy) { setShowDeleteModal(false); @@ -182,9 +187,13 @@ const DocumentListPage = ({ perPage }) => { {allDocs === null ?
Loading...
: null} {allDocs !== null ? (
-
+
+
+ {" "} + +
{allDocs.length > 0 ? ( -
+