Merge pull request #15 from kjannette/stan

Stan
This commit is contained in:
S Jannette
2024-01-13 02:34:44 -06:00
committed by GitHub
2 changed files with 32 additions and 13 deletions

View File

@@ -25,11 +25,6 @@ export const InfoCard = (props) => {
parties,
} = data;
/*
const [editPLaintiffs, setEditPLaintiffs] = useState(plaintiffs);
const [editDefendants, setEditDefendants] = useState(defendants);
*/
const editingContent = () => {
return (
<>
@@ -279,8 +274,12 @@ export const DocCard = (props) => {
responseGenerations,
confirmDelete,
} = props;
const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType);
};
const tooltipText =
"Parsing is taking longer than usual. Reasons may include unusually high traffic, or a corrupted conversion file. Dont worry - in most cases, this will resolve in 10 minutes. If not, click the “report” button to notify support. 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;
return (
<div className="doc-card-container">
@@ -302,6 +301,13 @@ export const DocCard = (props) => {
<div className="doc-col5">{parentCaseNumber}</div>
<div className="doc-col6">
{displayDeleteButton ? (
disabled ? (
<Button
labelText="Report"
className="btn btn-primary report-button"
onClick={() => report(documentId, docType)}
/>
) : (
<Button
onClick={() =>
confirmDelete(documentId, docType, responseGenerations)
@@ -309,6 +315,7 @@ export const DocCard = (props) => {
labelText="Delete"
className="btn btn-primary view-button delete-one"
/>
)
) : (
<></>
)}

View File

@@ -127,6 +127,18 @@
height: 35px;
}
.report-button {
background-color: #fff !important;
border: 1px solid red !important;
color: red !important;
width: 80px;
height: 35px;
}
.report-button:hover {
background-color: rgb(247, 248, 248) !important;
}
.card-text1 {
margin-top: 17px;
margin-right: 20px;