more
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user