feat : dd up up
CI / Verify (push) Successful in 2m34s
CI / Build immutable images and deploy (push) Successful in 4m1s

This commit is contained in:
2026-10-07 18:15:27 +07:00 Unverified
parent a53abb0e2e
commit bec24ad00b
9 changed files with 73 additions and 69 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
import { comparisonDelta, comparisonReferenceNames } from "@/lib/guides/comparison";
import { comparisonReferenceNames } from "@/lib/guides/comparison";
type WeaponRows = Parameters<typeof comparisonReferenceNames>[0];
@@ -8,7 +8,6 @@ export function ComparisonContext({ rows, metric }: {
}) {
const references = rows && metric ? comparisonReferenceNames(rows, metric) : [];
return <div className="flex flex-col gap-1 text-sm text-muted-foreground">
{!rows && <p>100% = ค่าฐานของเงื่อนไขนี้ เช่น 109% หมายถึงสูงกว่าค่าฐาน 9% เปรียบเทียบภายในเงื่อนไขเดียวกัน</p>}
{rows && metric ? <p>
{metric === "overallPercent" ? "ดาเมจทั้งทีม" : "ดาเมจส่วนตัว"} - {references.length
? `รายการที่แสดง 100%: ${references.join(" / ")}`
@@ -16,8 +15,3 @@ export function ComparisonContext({ rows, metric }: {
</p> : null}
</div>;
}
export function ComparisonValue({ value }: { value: string | null }) {
const delta = comparisonDelta(value);
return <p className="text-xs opacity-75">{delta ?? "ไม่มีข้อมูลเปรียบเทียบ"}</p>;
}