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, parties,
} = data; } = data;
/*
const [editPLaintiffs, setEditPLaintiffs] = useState(plaintiffs);
const [editDefendants, setEditDefendants] = useState(defendants);
*/
const editingContent = () => { const editingContent = () => {
return ( return (
<> <>
@@ -279,8 +274,12 @@ 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 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; const disabled = docType ? false : true;
return ( return (
<div className="doc-card-container"> <div className="doc-card-container">
@@ -302,13 +301,21 @@ export const DocCard = (props) => {
<div className="doc-col5">{parentCaseNumber}</div> <div className="doc-col5">{parentCaseNumber}</div>
<div className="doc-col6"> <div className="doc-col6">
{displayDeleteButton ? ( {displayDeleteButton ? (
<Button disabled ? (
onClick={() => <Button
confirmDelete(documentId, docType, responseGenerations) labelText="Report"
} className="btn btn-primary report-button"
labelText="Delete" onClick={() => report(documentId, docType)}
className="btn btn-primary view-button delete-one" />
/> ) : (
<Button
onClick={() =>
confirmDelete(documentId, docType, responseGenerations)
}
labelText="Delete"
className="btn btn-primary view-button delete-one"
/>
)
) : ( ) : (
<></> <></>
)} )}

View File

@@ -127,6 +127,18 @@
height: 35px; 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 { .card-text1 {
margin-top: 17px; margin-top: 17px;
margin-right: 20px; margin-right: 20px;