feature/IO-3103-Ant5-Notifications
This commit is contained in:
@@ -6,6 +6,7 @@ import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||
import { TemplateList } from "../../utils/TemplateConstants";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import dayjs from "../../utils/day";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
|
||||
const PayrollTemplate = TemplateList("special").exported_payroll;
|
||||
export default function TimeTicketsPayrollTable() {
|
||||
@@ -13,6 +14,7 @@ export default function TimeTicketsPayrollTable() {
|
||||
const { start, end } = searchParams;
|
||||
const { t } = useTranslation();
|
||||
const [loading, setLoading] = useState(false);
|
||||
const notification = useNotification();
|
||||
|
||||
const handleClick = async () => {
|
||||
setLoading(true);
|
||||
@@ -26,7 +28,9 @@ export default function TimeTicketsPayrollTable() {
|
||||
}
|
||||
},
|
||||
{},
|
||||
"x"
|
||||
"x",
|
||||
null,
|
||||
notification
|
||||
);
|
||||
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user