diff --git a/src/Components/Document/DocumentListPage.js b/src/Components/Document/DocumentListPage.js index 6e083fe..1f6af36 100644 --- a/src/Components/Document/DocumentListPage.js +++ b/src/Components/Document/DocumentListPage.js @@ -4,6 +4,7 @@ import { AppContext } from "../../Hooks/useContext/appContext"; import SelectDropdown from "../../pageElements/SelectDropdown"; import { DocCard } from "../../pageElements/Cards"; import { db } from "../../firebase"; +import Toggle from "../../pageElements/Toggle.js"; import MobileContent from "../MobileContent"; import { collection, @@ -32,7 +33,7 @@ const DocumentListPage = ({ perPage }) => { const [page, setPage] = useState(1); const [order, setOrder] = useState("parentCaseName"); const appUserId = group ? group.appUserId : null; - + const [verbValue, setVerbValue] = useState(1); const [isBusy, setIsBusy] = useState(false); const [selectedDocumentType, setSelectedDocumentType] = useState(); const [showModal, setShowModal] = useState(false); @@ -110,6 +111,11 @@ const DocumentListPage = ({ perPage }) => { setIsBusy(false); } + const handleNovos = (e) => { + navigate("/how-to"); + }; + + const handleToggle = (val) => setVerbValue(val); async function deleteFromStorage() { const selectedDoc = allDocs.filter((doc) => { return doc.documentId == selectedDocumentId; @@ -181,14 +187,37 @@ const DocumentListPage = ({ perPage }) => { {allDocs === null ?
Loading...
: null} {allDocs !== null ? ( -
+
{allDocs.length > 0 ? ( -
- +
+
+
+
+ {" "} +

+ Novos +

+
+
+

Min

+ +

Max

+
+
+
+
+
+ +
+
) : ( <> @@ -201,17 +230,17 @@ const DocumentListPage = ({ perPage }) => { )) ) : ( diff --git a/src/styles/doclist-page.scss b/src/styles/doclist-page.scss index b9450df..cdc763f 100644 --- a/src/styles/doclist-page.scss +++ b/src/styles/doclist-page.scss @@ -61,7 +61,7 @@ .list-upper-left { display: flex; flex-direction: row; - justify-content: left; + justify-content: right; width: 95%; }