feature/IO-3103-Ant5-Notifications

This commit is contained in:
Dave Richer
2025-01-21 17:20:46 -08:00
parent 0e218abbf4
commit 85d25862eb
161 changed files with 759 additions and 354 deletions

View File

@@ -9,6 +9,7 @@ import DatePIckerRanges from "../../utils/DatePickerRanges";
import dayjs from "../../utils/day";
import { GenerateDocument } from "../../utils/RenderTemplate";
import { TemplateList } from "../../utils/TemplateConstants";
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
const mapStateToProps = createStructuredSelector({
bodyshop: selectTechnician,
@@ -26,6 +27,7 @@ export function TechJobPrintTickets({ bodyshop, technician, event, attendacePrin
const [form] = Form.useForm();
const [visibility, setVisibility] = useState(false);
const Templates = TemplateList("report_center");
const notification = useNotification();
useEffect(() => {
if (visibility && event) {
@@ -59,7 +61,8 @@ export function TechJobPrintTickets({ bodyshop, technician, event, attendacePrin
attendacePrint === true ? Templates.attendance_employee.subject : Templates.timetickets_employee.subject
},
values.sendby,
bodyshop
bodyshop,
notification
);
} catch (error) {
console.log(error);