mirror of
https://github.com/aaronleetw/savage-tracking.git
synced 2024-11-14 19:11:39 -08:00
up from 30 to 100
This commit is contained in:
parent
7cc2c440f3
commit
43e2c2a096
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ export default function UserList() {
|
|||
<tbody>
|
||||
{
|
||||
users.data?.map((user) => (
|
||||
<tr className={`*:p-1 *: ${(user.selectedTime + user.actualTime) >= 30 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}>
|
||||
<tr className={`*:p-1 *: ${(user.selectedTime + user.actualTime) >= 100 ? "*:bg-emerald-200" : "*:bg-red-100"}`} key={user.username}>
|
||||
<td>{user.username}</td>
|
||||
<td>{user.grade}</td>
|
||||
<td>{user.class}</td>
|
||||
|
|
|
@ -99,7 +99,7 @@ export default function UserView() {
|
|||
</div>
|
||||
<div className={[
|
||||
"border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col",
|
||||
(userActualAttendTime.data ?? 0) + (userAttendTime.data ?? 0) >= 30 ? "bg-emerald-500" : "bg-red-300"
|
||||
(userActualAttendTime.data ?? 0) + (userAttendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300"
|
||||
].join(" ")}>
|
||||
<div className="text-center text-xl font-bold">預估總時數</div>
|
||||
<div className="flex-grow flex items-center">
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function Dash() {
|
|||
</div>
|
||||
<div className={[
|
||||
"border rounded-xl h-32 w-40 p-2 flex items-center justify-center flex-col mb-5",
|
||||
(actualAttendTime.data ?? 0) + (attendTime.data ?? 0) >= 30 ? "bg-emerald-500" : "bg-red-300"
|
||||
(actualAttendTime.data ?? 0) + (attendTime.data ?? 0) >= 100 ? "bg-emerald-500" : "bg-red-300"
|
||||
].join(" ")}>
|
||||
<div className="text-center text-xl font-bold">預估總時數</div>
|
||||
<div className="flex-grow flex items-center">
|
||||
|
|
Loading…
Reference in a new issue