Upload files to "client/src/components"

This commit is contained in:
2026-03-06 15:25:48 -06:00
parent cb8c56adfa
commit 35b4ded10c
2 changed files with 182 additions and 58 deletions

View File

@@ -68,12 +68,18 @@ export default function EmployeeModal({ employeeId, onClose }) {
const handleRestore = async (id) => {
await axios.patch(`/api/violations/${id}/restore`);
setConfirmDel(null);
load();
};
const handleNegate = async ({ resolution_type, details, resolved_by }) => {
await axios.patch(`/api/violations/${negating.id}/negate`, { resolution_type, details, resolved_by });
await axios.patch(`/api/violations/${negating.id}/negate`, {
resolution_type,
details,
resolved_by,
});
setNegating(null);
setConfirmDel(null);
load();
};