From fa5bab4d5f6bf8990bf0d1c939de3d72d5d5c3c9 Mon Sep 17 00:00:00 2001 From: zadit <75159257+insvrgent@users.noreply.github.com> Date: Mon, 3 Feb 2025 07:17:53 +0700 Subject: [PATCH] ok --- src/components/Coupon.js | 2 +- src/components/DailyCharts.js | 6 +- src/components/PeriodCharts.js | 44 +++++++----- src/pages/CreateUserWithCoupon.js | 2 +- src/pages/Join.js | 34 +++++++++- src/pages/Join.module.css | 2 + src/pages/Reports.js | 108 ++++++++++++++++++++++++++++-- src/pages/Transactions.module.css | 31 ++++++++- 8 files changed, 199 insertions(+), 30 deletions(-) diff --git a/src/components/Coupon.js b/src/components/Coupon.js index 38fc2ca..d083067 100644 --- a/src/components/Coupon.js +++ b/src/components/Coupon.js @@ -52,7 +52,7 @@ const Coupon = ({ code, value, period, type, expiration }) => { {/*
*/}{code == null ? '-' : value === 0 ? `Masa berlangganan ${period} minggu` : `Masa Voucher ${period} minggu`} diff --git a/src/components/DailyCharts.js b/src/components/DailyCharts.js index 4b7cdd6..592e977 100644 --- a/src/components/DailyCharts.js +++ b/src/components/DailyCharts.js @@ -22,7 +22,7 @@ const DailyCharts = ({ transactionGraph, colors, type }) => { "18-21", "21-24", ]; - + console.log(dayData) const seriesData = [ dayData.hour0To3Transactions.reduce((acc, t) => acc + t.sold, 0), dayData.hour3To6Transactions.reduce((acc, t) => acc + t.sold, 0), @@ -75,7 +75,7 @@ const DailyCharts = ({ transactionGraph, colors, type }) => { }; return ( -