fix build
This commit is contained in:
parent
951c3be613
commit
d5936087ff
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue