From 38b22dd2ddef41fb9ca7c01000ab87144fc5c3c8 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 23 Feb 2026 10:32:24 +0800 Subject: [PATCH] feat: update dashboard components (dashboard-content, help-page, kinerja-divisi) Co-authored-by: Qwen-Coder --- src/components/dashboard-content.tsx | 59 +++++++++++----------------- src/components/help-page.tsx | 7 ---- src/components/kinerja-divisi.tsx | 44 +++++++++------------ 3 files changed, 42 insertions(+), 68 deletions(-) diff --git a/src/components/dashboard-content.tsx b/src/components/dashboard-content.tsx index f45ccdf..d0c8b8e 100644 --- a/src/components/dashboard-content.tsx +++ b/src/components/dashboard-content.tsx @@ -66,6 +66,12 @@ const eventData = [ { date: "19 Oktober 2025", title: "Rapat Koordinasi" }, ]; +const apbdesData = [ + { name: "Belanja", value: 70, color: "blue" }, + { name: "Pendapatan", value: 90, color: "green" }, + { name: "Pembangunan", value: 50, color: "orange" }, +]; + export function DashboardContent() { const { colorScheme } = useMantineColorScheme(); const dark = colorScheme === "dark"; @@ -480,42 +486,23 @@ export function DashboardContent() { Grafik APBDes - - - Belanja - - - - - - Pendapatan - - - - - - Pembangunan - - - + {apbdesData.map((data, index) => ( + + + + {data.name} + + + + + + + ))} diff --git a/src/components/help-page.tsx b/src/components/help-page.tsx index 1450a18..c7bab00 100644 --- a/src/components/help-page.tsx +++ b/src/components/help-page.tsx @@ -143,13 +143,6 @@ const HelpPage = () => { return ( - - Pusat Bantuan - - - Temukan jawaban untuk pertanyaan Anda atau hubungi tim support kami - - {/* Statistics Section */} {stats.map((stat, index) => ( diff --git a/src/components/kinerja-divisi.tsx b/src/components/kinerja-divisi.tsx index efd504f..05265b7 100644 --- a/src/components/kinerja-divisi.tsx +++ b/src/components/kinerja-divisi.tsx @@ -122,10 +122,10 @@ const KinerjaDivisi = () => { // Activity progress statistics const activityProgressStats = [ - { name: "Selesai", value: 12 }, - { name: "Dikerjakan", value: 8 }, - { name: "Segera Dikerjakan", value: 5 }, - { name: "Dibatalkan", value: 2 }, + { name: "Selesai", value: 12, fill: "#10B981" }, + { name: "Dikerjakan", value: 8, fill: "#F59E0B" }, + { name: "Segera Dikerjakan", value: 5, fill: "#EF4444" }, + { name: "Dibatalkan", value: 2, fill: "#6B7280" }, ]; const COLORS = ["#10B981", "#F59E0B", "#EF4444", "#6B7280"]; @@ -204,9 +204,9 @@ const KinerjaDivisi = () => { contentStyle={ dark ? { - backgroundColor: "var(--mantine-color-dark-7)", - borderColor: "var(--mantine-color-dark-6)", - } + backgroundColor: "var(--mantine-color-dark-7)", + borderColor: "var(--mantine-color-dark-6)", + } : {} } /> @@ -402,9 +402,9 @@ const KinerjaDivisi = () => { contentStyle={ dark ? { - backgroundColor: "var(--mantine-color-dark-7)", - borderColor: "var(--mantine-color-dark-6)", - } + backgroundColor: "var(--mantine-color-dark-7)", + borderColor: "var(--mantine-color-dark-6)", + } : {} } /> @@ -434,33 +434,27 @@ const KinerjaDivisi = () => { Progres Kegiatan - + `${name}: ${percent ? (percent * 100).toFixed(0) : "0"}%` } - > - {activityProgressStats.map((entry, index) => ( - - ))} - + />