This commit is contained in:
Kenneth Jannette
2024-01-22 15:13:05 -06:00
parent a87517558d
commit b364133103
2 changed files with 9 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ const DocumentListPage = ({ perPage }) => {
if (!group) {
return null;
}
console.log("allDocs", allDocs);
const DesktopContent = () => {
return (
<>
@@ -204,6 +204,7 @@ const DocumentListPage = ({ perPage }) => {
parentCaseNumber={doc.parentCaseNumber}
parentCaseName={doc.parentCaseName}
parentCaseId={doc.parentCaseId}
createdAt={doc.createdAt}
docType={doc.docType}
documentId={doc.documentId}
dateServed={doc.dateServed}

View File

@@ -4,7 +4,7 @@ import { FileEarmarkText } from "react-bootstrap-icons";
import TextInput from "../pageElements/TextInput";
import Tooltip from "../pageElements/Tooltip";
import { InfoCircle } from "react-bootstrap-icons";
import { toDate } from "firebase/firestore";
export const InfoCard = (props) => {
const { data, onEdit, onCancel, onSave, onChangeInput, isEditing, isBusy } =
props;
@@ -273,8 +273,13 @@ export const DocCard = (props) => {
handleNavigate,
responseGenerations,
confirmDelete,
createdAt,
} = props;
const now = new Date().getTime();
const temp = createdAt.toDate();
const diff = Math.round((now - temp) / 60 / 1000);
const isReportable = diff > 15;
console.log("isRpeortable", isReportable);
const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType);
};