more
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
|||||||
} from "firebase/firestore";
|
} from "firebase/firestore";
|
||||||
import ListPagination from "../../pageElements/ListPagination";
|
import ListPagination from "../../pageElements/ListPagination";
|
||||||
import ConfirmModal from "../Modals/ConfirmModal";
|
import ConfirmModal from "../Modals/ConfirmModal";
|
||||||
|
import Toggle from "../../pageElements/Toggle";
|
||||||
import "../../styles/doclist-page.scss";
|
import "../../styles/doclist-page.scss";
|
||||||
|
|
||||||
const DocumentListPage = ({ perPage }) => {
|
const DocumentListPage = ({ perPage }) => {
|
||||||
@@ -36,7 +37,7 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
const [isBusy, setIsBusy] = useState(false);
|
const [isBusy, setIsBusy] = useState(false);
|
||||||
const [selectedDocumentType, setSelectedDocumentType] = useState();
|
const [selectedDocumentType, setSelectedDocumentType] = useState();
|
||||||
const [showModal, setShowModal] = useState(false);
|
const [showModal, setShowModal] = useState(false);
|
||||||
|
const [responseVerbosity, setResponseVerbosity] = useState("");
|
||||||
const apiUrl =
|
const apiUrl =
|
||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
@@ -151,6 +152,10 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleToggle = () => {
|
||||||
|
console.log(" <Toggle onClick={handleToggle} />");
|
||||||
|
};
|
||||||
|
|
||||||
function handleCancelDelete() {
|
function handleCancelDelete() {
|
||||||
if (!isBusy) {
|
if (!isBusy) {
|
||||||
setShowDeleteModal(false);
|
setShowDeleteModal(false);
|
||||||
@@ -182,9 +187,13 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
{allDocs === null ? <div>Loading...</div> : null}
|
{allDocs === null ? <div>Loading...</div> : null}
|
||||||
{allDocs !== null ? (
|
{allDocs !== null ? (
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div className="doclist-upper-wrapper">
|
||||||
|
<div className="doclist-toggle-box">
|
||||||
|
{" "}
|
||||||
|
<Toggle onClick={handleToggle} />
|
||||||
|
</div>
|
||||||
{allDocs.length > 0 ? (
|
{allDocs.length > 0 ? (
|
||||||
<div className="d-flex justify-content-end mb-3">
|
<div className="doclist-select-box mb-3">
|
||||||
<SelectDropdown
|
<SelectDropdown
|
||||||
dropDownOptions={dropDownOptions}
|
dropDownOptions={dropDownOptions}
|
||||||
titleText="Sort documents"
|
titleText="Sort documents"
|
||||||
|
|||||||
@@ -16,6 +16,22 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.doclist-upper-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doclist-toggle-box {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 25px;
|
||||||
|
min-width: 120px;
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doclist-select-box {
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
.nodocs-text-container {
|
.nodocs-text-container {
|
||||||
border-top: 1px solid #dcd9d9 !important;
|
border-top: 1px solid #dcd9d9 !important;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
|
|||||||
Reference in New Issue
Block a user