fix build

This commit is contained in:
Truong Vo 2025-05-07 16:49:15 +07:00
parent 951c3be613
commit d5936087ff
1 changed files with 28 additions and 28 deletions

View File

@ -69,17 +69,17 @@ interface UserData {
monthlyLeaveDays: MonthlyLeaveDays[]
}
interface DataReason {
id: number
c_code: string
c_name: string
}
// interface DataReason {
// id: number
// c_code: string
// c_name: string
// }
interface DataTimeType {
id: number
c_code: string
c_name: string
}
// interface DataTimeType {
// id: number
// c_code: string
// c_name: string
// }
const LeaveManagement = () => {
const [opened1, { open: open1, close: close1 }] = useDisclosure(false)
@ -118,24 +118,24 @@ const LeaveManagement = () => {
const currentMonth = now.getMonth() + 1 // getMonth() trả về 0-11
const currentYear = now.getFullYear()
const getListMasterByType = async (type: string) => {
try {
const params = {
type: type,
}
const res = await get(getListMaster, params)
if (res.status) {
return res.data
}
} catch (error: any) {
notifications.show({
title: 'Error',
message: error.message ?? error,
color: 'red',
})
}
return []
}
// const getListMasterByType = async (type: string) => {
// try {
// const params = {
// type: type,
// }
// const res = await get(getListMaster, params)
// if (res.status) {
// return res.data
// }
// } catch (error: any) {
// notifications.show({
// title: 'Error',
// message: error.message ?? error,
// color: 'red',
// })
// }
// return []
// }
// useEffect(() => {
// const fetchData = async () => {