From aff05c6b1afd744c11dd22c24713fc31ac8b12a0 Mon Sep 17 00:00:00 2001
From: ValdiANS
Date: Mon, 12 Jan 2026 17:31:35 +0700
Subject: [PATCH] feat: add export to excel
---
.../pages/reports/DailyChecklistReportsContent.tsx | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
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 */}