From d5936087ffa19c17dec9cdce13873dd24e343580 Mon Sep 17 00:00:00 2001 From: Truong Vo <41848815+vmtruong301296@users.noreply.github.com> Date: Wed, 7 May 2025 16:49:15 +0700 Subject: [PATCH] fix build --- .../pages/LeaveManagement/LeaveManagement.tsx | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/FRONTEND/src/pages/LeaveManagement/LeaveManagement.tsx b/FRONTEND/src/pages/LeaveManagement/LeaveManagement.tsx index 55e003f..ea4002c 100644 --- a/FRONTEND/src/pages/LeaveManagement/LeaveManagement.tsx +++ b/FRONTEND/src/pages/LeaveManagement/LeaveManagement.tsx @@ -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 () => {