chore : match text for both public and admin
This commit is contained in:
@@ -206,7 +206,7 @@ export function TeamImportPreviewCard({
|
|||||||
<Card className={cn(checked && "ring-2 ring-primary")}>
|
<Card className={cn(checked && "ring-2 ring-primary")}>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>{team.title}</CardTitle>
|
<CardTitle>{team.title}</CardTitle>
|
||||||
<CardDescription>โรเทชั่น {seconds} วิ{sourceLabel ? ` - ${sourceLabel}` : ""}</CardDescription>
|
<CardDescription>Rotation {seconds} วิ{sourceLabel ? ` - ${sourceLabel}` : ""}</CardDescription>
|
||||||
<CardAction>
|
<CardAction>
|
||||||
<Field orientation="horizontal">
|
<Field orientation="horizontal">
|
||||||
<Checkbox id={checkboxId} checked={checked} disabled={disabled} onCheckedChange={(value) => onCheckedChange(value === true)} />
|
<Checkbox id={checkboxId} checked={checked} disabled={disabled} onCheckedChange={(value) => onCheckedChange(value === true)} />
|
||||||
@@ -941,7 +941,7 @@ export function TeamEditor({
|
|||||||
className="flex-none"
|
className="flex-none"
|
||||||
htmlFor={`team-rotation-${team.clientId}`}
|
htmlFor={`team-rotation-${team.clientId}`}
|
||||||
>
|
>
|
||||||
Rotation
|
โรเทชั่น
|
||||||
</FieldLabel>
|
</FieldLabel>
|
||||||
<Input
|
<Input
|
||||||
id={`team-rotation-${team.clientId}`}
|
id={`team-rotation-${team.clientId}`}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ describe("weapon damage editing", () => {
|
|||||||
["0.00", "-"],
|
["0.00", "-"],
|
||||||
["120.00", "120%"],
|
["120.00", "120%"],
|
||||||
["120.125", "120.13%"],
|
["120.125", "120.13%"],
|
||||||
["", ""],
|
["", "-"],
|
||||||
])("displays %s as %s while preserving its raw draft value", async (raw, display) => {
|
])("displays %s as %s while preserving its raw draft value", async (raw, display) => {
|
||||||
const input = await render(raw);
|
const input = await render(raw);
|
||||||
expect(input.value).toBe(display);
|
expect(input.value).toBe(display);
|
||||||
|
|||||||
@@ -30,9 +30,11 @@ import { type EditorBase, hasIssuePrefix, parseEditorDraft, ConditionControls, r
|
|||||||
function WeaponDamageInput({ value, onFocus, onBlur, ...props }: ComponentProps<typeof Input> & { value: string }) {
|
function WeaponDamageInput({ value, onFocus, onBlur, ...props }: ComponentProps<typeof Input> & { value: string }) {
|
||||||
const [focused, setFocused] = useState(false);
|
const [focused, setFocused] = useState(false);
|
||||||
const numeric = Number(value);
|
const numeric = Number(value);
|
||||||
const displayValue = !value.trim() || !Number.isFinite(numeric)
|
const displayValue = !value.trim()
|
||||||
|
? "-"
|
||||||
|
: !Number.isFinite(numeric)
|
||||||
? value
|
? value
|
||||||
: weaponComparisonPercent(value) ?? "";
|
: weaponComparisonPercent(value) ?? "-";
|
||||||
|
|
||||||
return <Input
|
return <Input
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ function TeamCard({
|
|||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>{team.title}</CardTitle>
|
<CardTitle>{team.title}</CardTitle>
|
||||||
<CardDescription>โรเทชั่น {seconds} วิ</CardDescription>
|
<CardDescription>โรเทชั่น {seconds} วินาที</CardDescription>
|
||||||
{action ? <CardAction>{action}</CardAction> : null}
|
{action ? <CardAction>{action}</CardAction> : null}
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="flex flex-col gap-4">
|
<CardContent className="flex flex-col gap-4">
|
||||||
@@ -389,7 +389,7 @@ function TeamCard({
|
|||||||
<Separator />
|
<Separator />
|
||||||
<div className="flex items-end justify-between">
|
<div className="flex items-end justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm text-muted-foreground">{exporting ? "ดาเมจรวม" : "ดาเมจรวมต่อโรเทชั่น"}</p>
|
<p className="text-sm text-muted-foreground">ดาเมจรวม</p>
|
||||||
<p className="font-semibold">{total.toLocaleString()}</p>
|
<p className="font-semibold">{total.toLocaleString()}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-right">
|
<div className="text-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user