fix: isNeverExpire hide RemainPercentBar

This commit is contained in:
hamster1963 2024-12-24 15:02:41 +08:00
parent 98dcbd506b
commit fede9b0bd7

View File

@ -47,7 +47,7 @@ export default function BillingInfo({ parsedData }: { parsedData: PublicNoteData
<div className={cn("text-[10px] text-muted-foreground")}> <div className={cn("text-[10px] text-muted-foreground")}>
{t("billingInfo.remaining")}: {isNeverExpire ? t("billingInfo.indefinite") : daysLeftObject.days + " " + t("billingInfo.days")} {t("billingInfo.remaining")}: {isNeverExpire ? t("billingInfo.indefinite") : daysLeftObject.days + " " + t("billingInfo.days")}
</div> </div>
<RemainPercentBar className="mt-0.5" value={daysLeftObject.remainingPercentage * 100} /> {!isNeverExpire && <RemainPercentBar className="mt-0.5" value={daysLeftObject.remainingPercentage * 100} />}
</> </>
) : ( ) : (
<> <>