From 712b9155d2b548a79438a618d27c5fc821c8d4d6 Mon Sep 17 00:00:00 2001 From: "fredy.siswanto" Date: Sun, 23 Feb 2025 21:13:31 +0700 Subject: [PATCH] feat: add dashboard page and data structure for reporting --- app/pages/dashboard/data.ts | 20 +++++++++++++++++++ app/pages/dashboard/index.tsx | 7 +++++++ app/routes/_layout.admin.dashboard._index.tsx | 4 +++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 app/pages/dashboard/data.ts create mode 100644 app/pages/dashboard/index.tsx diff --git a/app/pages/dashboard/data.ts b/app/pages/dashboard/data.ts new file mode 100644 index 0000000..a4fa3ec --- /dev/null +++ b/app/pages/dashboard/data.ts @@ -0,0 +1,20 @@ +export const REPORT = [ + { title: 'Total Transaksi', amound: 1_000_000, icon: 'money' }, + { title: 'Transaksi Tertagih', amound: 2_000_000, icon: 'money' }, + { title: 'Transaksi Tertagih', amound: 2_000_000, icon: 'money' }, +] + +export const HISTORY = [ + { + title: 'Total Kunjungan', + total: 1_000_000, + icon: 'money', + report: [2190, 700], + }, + { + title: 'Total User Memesan', + total: 274, + icon: 'money', + report: [211, 54], + }, +] diff --git a/app/pages/dashboard/index.tsx b/app/pages/dashboard/index.tsx new file mode 100644 index 0000000..6413292 --- /dev/null +++ b/app/pages/dashboard/index.tsx @@ -0,0 +1,7 @@ +export const DashboardPage = () => { + return ( +
+

test DashboardPage

+
+ ) +} diff --git a/app/routes/_layout.admin.dashboard._index.tsx b/app/routes/_layout.admin.dashboard._index.tsx index 2140281..7fc1b2d 100644 --- a/app/routes/_layout.admin.dashboard._index.tsx +++ b/app/routes/_layout.admin.dashboard._index.tsx @@ -1,4 +1,6 @@ +import { DashboardPage } from '~/pages/dashboard' + const DashboardIndexLayout = () => { - return
Dashboard Page
+ return } export default DashboardIndexLayout