diff --git a/src/figma-make/components/pages/reports/DailyChecklistReportsContent.tsx b/src/figma-make/components/pages/reports/DailyChecklistReportsContent.tsx index 7d6383a0..61558d4f 100644 --- a/src/figma-make/components/pages/reports/DailyChecklistReportsContent.tsx +++ b/src/figma-make/components/pages/reports/DailyChecklistReportsContent.tsx @@ -29,6 +29,8 @@ import { ColumnDef } from '@tanstack/react-table'; import { report } from 'process'; import { PhaseApi } from '@/services/api/daily-checklist/phase'; import { EmployeeApi } from '@/services/api/daily-checklist/employee'; +import { Button } from '@/figma-make/components/base/button'; +import { Download } from 'lucide-react'; const MONTH_OPTIONS = [ { value: '1', label: 'Januari' }, @@ -262,9 +264,11 @@ export function DailyChecklistReportsContent() { }, ]; - // const exportToCSV = () => { - // toast.info('Export CSV akan segera tersedia'); - // }; + const exportToCSV = () => { + DailyChecklistApi.exportDailyChecklistReportToExcel( + getTableFilterQueryString() + ); + }; const monthChangeHandler = (value: string) => updateFilter('bulan', value); const yearChangeHandler = (value: string) => updateFilter('tahun', value); @@ -306,13 +310,13 @@ export function DailyChecklistReportsContent() { Laporan lengkap checklist harian

- {/* */} + {/* Main Card */}