fix(frontend): fix various typo, capfirst, use a grid for home page
All checks were successful
Deploy Amap / deploy (push) Successful in 42s

This commit is contained in:
Julien Aldon
2026-04-17 11:38:33 +02:00
parent 7e3cf6de9d
commit 4b57b29b34
6 changed files with 27 additions and 25 deletions

View File

@@ -46,20 +46,24 @@ export function ContractCheque({ inputForm, price, productor }: ContractChequePr
return productor?.payment_methods.find((el) => el.name === "cheque");
}, [productor]);
const maxCheques = useMemo(() => {
return paymentMethod?.max && paymentMethod?.max !== "" ? Number(paymentMethod?.max) : 3
}, [paymentMethod])
return (
<Stack>
<Title order={4}>{`${t("order name")} : ${paymentMethod?.details}`}</Title>
<Title order={4}>{`${t("order name", {capfirst: true})} : ${paymentMethod?.details}`}</Title>
<NumberInput
clampBehavior="strict"
label={t("cheque quantity", { capfirst: true })}
placeholder={t("enter cheque quantity", { capfirst: true })}
description={t(
"number of cheques between 1 and 3 cheques also enter your cheques identifiers, value is calculated automatically",
{ capfirst: true },
{ capfirst: true, max: maxCheques },
)}
min={1}
max={
paymentMethod?.max && paymentMethod?.max !== "" ? Number(paymentMethod?.max) : 3
}
max={maxCheques}
{...inputForm.getInputProps(`cheque_quantity`)}
/>
<Group grow>