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 AttendanceCsv = TemplateList("special").attendance_detail_csv;
|
||||
|
||||
@@ -14,6 +15,7 @@ export default function TimeTicketsAttendanceTable() {
|
||||
const { start, end } = searchParams;
|
||||
const { t } = useTranslation();
|
||||
const [loading, setLoading] = useState(false);
|
||||
const notification = useNotification();
|
||||
|
||||
const handleClick = async () => {
|
||||
setLoading(true);
|
||||
@@ -27,7 +29,9 @@ export default function TimeTicketsAttendanceTable() {
|
||||
}
|
||||
},
|
||||
{},
|
||||
"text"
|
||||
"text",
|
||||
null,
|
||||
notification
|
||||
);
|
||||
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user