upd: calendar division

Deskripsi:
- search riwayat
- akses role pada fitur kalender divisi

NO Issues
This commit is contained in:
amel
2025-05-26 10:54:16 +08:00
parent ee87cab5b8
commit 84f4aab36e
4 changed files with 71 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ export default function CalendarHistory() {
async function handleLoad() {
try {
const hasil = await decryptToken(String(token?.current));
const response = await apiGetCalendarHistory({ user: hasil, search: '', division: id });
const response = await apiGetCalendarHistory({ user: hasil, search: search, division: id });
setData(response.data);
} catch (error) {
console.error(error);