fix: public note display

This commit is contained in:
hamster1963
2024-12-17 15:25:35 +08:00
parent 84974f0e78
commit 9afded7e21
3 changed files with 46 additions and 18 deletions

View File

@@ -79,9 +79,9 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
) : (
<>
@@ -95,9 +95,9 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
))}
{parsedData?.planDataMod && (
@@ -215,9 +215,9 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
) : (
<>
@@ -231,9 +231,9 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
))}
{parsedData?.planDataMod && (

View File

@@ -93,9 +93,9 @@ export default function ServerCardInline({
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
) : (
<>
@@ -109,9 +109,9 @@ export default function ServerCardInline({
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
))}
{parsedData?.planDataMod && (
@@ -254,9 +254,9 @@ export default function ServerCardInline({
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
) : (
<>
@@ -270,9 +270,9 @@ export default function ServerCardInline({
</p>
) : parsedData.billingDataMod.amount === "0" ? (
<p className={cn("text-[10px] text-green-600 ")}></p>
) : (
) : parsedData.billingDataMod.amount === "-1" ? (
<p className={cn("text-[10px] text-pink-600 ")}></p>
)}
) : null}
</>
))}
{parsedData?.planDataMod && (