From 98dcbd506b19836b7a2a0e18e80ff9483bd5c4aa Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Tue, 24 Dec 2024 14:59:17 +0800 Subject: [PATCH] feat: fixedTopServerName show billingInfo inline --- src/components/ServerCard.tsx | 32 ++++++++++++++++++++++++++++---- src/components/billingInfo.tsx | 12 ++++++------ 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/src/components/ServerCard.tsx b/src/components/ServerCard.tsx index 2b9a0b1..9a723e9 100644 --- a/src/components/ServerCard.tsx +++ b/src/components/ServerCard.tsx @@ -60,10 +60,22 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
{name}
-{name}
-{t("billingInfo.price")}: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} @@ -47,13 +44,13 @@ export default function BillingInfo({ parsedData }: { parsedData: PublicNoteData ) : parsedData.billingDataMod.amount === "-1" ? (
{t("billingInfo.usage-baseed")}
) : null} +- {t("billingInfo.expired")}: {daysLeftObject.days * -1} {t("billingInfo.days")} -
{parsedData.billingDataMod.amount && parsedData.billingDataMod.amount !== "0" && parsedData.billingDataMod.amount !== "-1" ? ({t("billingInfo.price")}: {parsedData.billingDataMod.amount}/{parsedData.billingDataMod.cycle} @@ -63,6 +60,9 @@ export default function BillingInfo({ parsedData }: { parsedData: PublicNoteData ) : parsedData.billingDataMod.amount === "-1" ? (
{t("billingInfo.usage-baseed")}
) : null} ++ {t("billingInfo.expired")}: {daysLeftObject.days * -1} {t("billingInfo.days")} +
> ) }