This commit is contained in:
Kenneth Jannette
2024-01-13 02:34:03 -06:00
parent f64db73119
commit 0c380fb7ac

View File

@@ -274,6 +274,10 @@ export const DocCard = (props) => {
responseGenerations, responseGenerations,
confirmDelete, confirmDelete,
} = props; } = props;
const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType);
};
const tooltipText = const tooltipText =
"Parsing is taking longer than usual. Reasons may include high traffic, or a transitory system error. Usually this will resolve in 10 minutes. If not, click “report”, and it will be fixed in 24 hours."; "Parsing is taking longer than usual. Reasons may include high traffic, or a transitory system error. Usually this will resolve in 10 minutes. If not, click “report”, and it will be fixed in 24 hours.";
const disabled = docType ? false : true; const disabled = docType ? false : true;
@@ -301,6 +305,7 @@ export const DocCard = (props) => {
<Button <Button
labelText="Report" labelText="Report"
className="btn btn-primary report-button" className="btn btn-primary report-button"
onClick={() => report(documentId, docType)}
/> />
) : ( ) : (
<Button <Button