Skip to content

Commit fddd5ed

Browse files
committed
fix: billing text
1 parent a448e5e commit fddd5ed

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"@radix-ui/react-separator": "^1.1.0",
2121
"@radix-ui/react-slot": "^1.1.0",
2222
"@radix-ui/react-switch": "^1.1.1",
23-
"@tanstack/react-query": "^5.62.2",
24-
"@tanstack/react-query-devtools": "^5.62.2",
23+
"@tanstack/react-query": "^5.62.3",
24+
"@tanstack/react-query-devtools": "^5.62.3",
2525
"@tanstack/react-table": "^8.20.5",
2626
"@types/d3-geo": "^3.1.0",
2727
"@types/luxon": "^3.4.2",
@@ -38,15 +38,15 @@
3838
"react-i18next": "^15.1.3",
3939
"react-router-dom": "^7.0.2",
4040
"recharts": "^2.14.1",
41-
"sonner": "^1.7.0",
41+
"sonner": "^1.7.1",
4242
"tailwind-merge": "^2.5.5",
4343
"tailwindcss-animate": "^1.0.7"
4444
},
4545
"devDependencies": {
4646
"@eslint/js": "^9.16.0",
4747
"@types/node": "^22.10.1",
48-
"@types/react": "^19.0.0",
49-
"@types/react-dom": "^19.0.0",
48+
"@types/react": "^19.0.1",
49+
"@types/react-dom": "^19.0.1",
5050
"@vitejs/plugin-react-swc": "^3.7.2",
5151
"autoprefixer": "^10.4.20",
5252
"eslint": "^9.16.0",

src/components/ServerCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function ServerCard({
5050
} else {
5151
daysLeft = getDaysBetweenDates(
5252
parsedData.billingDataMod.endDate,
53-
new Date().toISOString(),
53+
new Date(now).toISOString(),
5454
);
5555
}
5656
}

src/components/ServerCardInline.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function ServerCardInline({
5757
} else {
5858
daysLeft = getDaysBetweenDates(
5959
parsedData.billingDataMod.endDate,
60-
new Date().toISOString(),
60+
new Date(now).toISOString(),
6161
);
6262
}
6363
}
@@ -94,7 +94,11 @@ export default function ServerCardInline({
9494
</p>
9595
{parsedData &&
9696
(daysLeft >= 0 ? (
97-
<p className={cn("text-[10px] text-muted-foreground")}>
97+
<p
98+
className={cn("text-[10px] text-muted-foreground", {
99+
"text-orange-600": daysLeft <= 7 && !isNeverExpire,
100+
})}
101+
>
98102
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
99103
</p>
100104
) : (

0 commit comments

Comments
 (0)