diff --git a/next.config.mjs b/next.config.mjs index 5774dd8..3cfddca 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -4,7 +4,7 @@ const nextConfig = { return [ { source: '/', - destination: '/dashboard/karyawan', + destination: '/karyawan', permanent: true, }, ]; diff --git a/src/app/dashboard/absensi/page.tsx b/src/app/dashboard/absensi/page.tsx deleted file mode 100644 index 5bcfc9e..0000000 --- a/src/app/dashboard/absensi/page.tsx +++ /dev/null @@ -1,106 +0,0 @@ -"use client" -import { useAppSelector } from "@/lib/hooks"; -import { useGetAttendanceRangeQuery, useGetMonthlyAttendanceQuery, useGetOrganizationAttendanceQuery } from "@/services/api"; -import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; -import { BarChart, ChartsTooltip, LineChart, pieArcClasses, pieArcLabelClasses, PieChart } from "@mui/x-charts"; -import { ChartsNoDataOverlay } from "@mui/x-charts/ChartsOverlay"; -import { formatDate } from "date-fns"; - -export default function AbsensiPage() { - const filter = useAppSelector(state => state.filter.filter); - const {data: attendanceSummary} = useGetOrganizationAttendanceQuery(filter); - const {data: attendanceRange} = useGetAttendanceRangeQuery(filter); - const {data: montlyAttendance} = useGetMonthlyAttendanceQuery(filter); - - return ( -