more
This commit is contained in:
@@ -171,7 +171,7 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
if (!group) {
|
if (!group) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
console.log("allDocs", allDocs);
|
||||||
const DesktopContent = () => {
|
const DesktopContent = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -204,6 +204,7 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
parentCaseNumber={doc.parentCaseNumber}
|
parentCaseNumber={doc.parentCaseNumber}
|
||||||
parentCaseName={doc.parentCaseName}
|
parentCaseName={doc.parentCaseName}
|
||||||
parentCaseId={doc.parentCaseId}
|
parentCaseId={doc.parentCaseId}
|
||||||
|
createdAt={doc.createdAt}
|
||||||
docType={doc.docType}
|
docType={doc.docType}
|
||||||
documentId={doc.documentId}
|
documentId={doc.documentId}
|
||||||
dateServed={doc.dateServed}
|
dateServed={doc.dateServed}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { FileEarmarkText } from "react-bootstrap-icons";
|
|||||||
import TextInput from "../pageElements/TextInput";
|
import TextInput from "../pageElements/TextInput";
|
||||||
import Tooltip from "../pageElements/Tooltip";
|
import Tooltip from "../pageElements/Tooltip";
|
||||||
import { InfoCircle } from "react-bootstrap-icons";
|
import { InfoCircle } from "react-bootstrap-icons";
|
||||||
|
import { toDate } from "firebase/firestore";
|
||||||
export const InfoCard = (props) => {
|
export const InfoCard = (props) => {
|
||||||
const { data, onEdit, onCancel, onSave, onChangeInput, isEditing, isBusy } =
|
const { data, onEdit, onCancel, onSave, onChangeInput, isEditing, isBusy } =
|
||||||
props;
|
props;
|
||||||
@@ -273,8 +273,13 @@ export const DocCard = (props) => {
|
|||||||
handleNavigate,
|
handleNavigate,
|
||||||
responseGenerations,
|
responseGenerations,
|
||||||
confirmDelete,
|
confirmDelete,
|
||||||
|
createdAt,
|
||||||
} = props;
|
} = 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) => {
|
const report = (documentId, docType) => {
|
||||||
console.log("report documentId, docType", documentId, docType);
|
console.log("report documentId, docType", documentId, docType);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user