From 43e2c2a096096b5b67e2334e69f056391ebac077 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Mon, 1 Jan 2024 17:59:20 +0800 Subject: [PATCH] up from 30 to 100 --- src/components/admin/attendance/UserList.tsx | 2 +- src/components/admin/attendance/UserView.tsx | 2 +- src/pages/dash/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/admin/attendance/UserList.tsx b/src/components/admin/attendance/UserList.tsx index bb755a2..0f893d8 100644 --- a/src/components/admin/attendance/UserList.tsx +++ b/src/components/admin/attendance/UserList.tsx @@ -20,7 +20,7 @@ export default function UserList() { { users.data?.map((user) => ( - = 30 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}> + = 100 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}> {user.username} {user.grade} {user.class} diff --git a/src/components/admin/attendance/UserView.tsx b/src/components/admin/attendance/UserView.tsx index e86eff3..b9e9d15 100644 --- a/src/components/admin/attendance/UserView.tsx +++ b/src/components/admin/attendance/UserView.tsx @@ -99,7 +99,7 @@ export default function UserView() {
= 30 ? "bg-emerald-500" : "bg-red-300" + (userActualAttendTime.data ?? 0) + (userAttendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300" ].join(" ")}>
預估總時數
diff --git a/src/pages/dash/index.tsx b/src/pages/dash/index.tsx index bed031f..3e07fb2 100644 --- a/src/pages/dash/index.tsx +++ b/src/pages/dash/index.tsx @@ -51,7 +51,7 @@ export default function Dash() {
= 30 ? "bg-emerald-500" : "bg-red-300" + (actualAttendTime.data ?? 0) + (attendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300" ].join(" ")}>
預估總時數