Upload files to "client/src/components"
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user