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(" ")}>
預估總時數