(refactor) LocationEditForm: renaming localization string names

This commit is contained in:
2025-11-24 14:50:54 +01:00
parent 632f8888b5
commit ead7451170
3 changed files with 36 additions and 30 deletions

View File

@@ -80,8 +80,8 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
</div>
</fieldset>
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
<legend className="fieldset-legend font-semibold uppercase">{t("tenant-2d-code-legend")}</legend>
<InfoBox className="p-1 mb-1">{t("tenant-2d-code-info")}</InfoBox>
<legend className="fieldset-legend font-semibold uppercase">{t("tenant-payment-instructions-legend")}</legend>
<InfoBox className="p-1 mb-1">{t("tenant-payment-instructions-code-info")}</InfoBox>
<fieldset className="fieldset">
<label className="label cursor-pointer justify-start gap-3">
@@ -92,7 +92,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
checked={generateTenantCode}
onChange={(e) => setGenerateTenantCode(e.target.checked)}
/>
<legend className="fieldset-legend">{t("tenant-2d-code-toggle-label")}</legend>
<legend className="fieldset-legend">{t("tenant-payment-instructions-toggle-label")}</legend>
</label>
</fieldset>
@@ -100,14 +100,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<>
<div className="form-control w-full">
<label className="label">
<span className="label-text">{t("tenant-name-label")}</span>
<span className="label-text">{t("iban-payment--tenant-name-label")}</span>
</label>
<input
id="tenantName"
name="tenantName"
type="text"
maxLength={30}
placeholder={t("tenant-name-placeholder")}
placeholder={t("iban-payment--tenant-name-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantName ?? ""}
onChange={(e) => handleTenantFieldChange("tenantName", e.target.value)}
@@ -124,14 +124,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<div className="form-control w-full">
<label className="label">
<span className="label-text">{t("tenant-street-label")}</span>
<span className="label-text">{t("iban-payment--tenant-street-label")}</span>
</label>
<input
id="tenantStreet"
name="tenantStreet"
type="text"
maxLength={27}
placeholder={t("tenant-street-placeholder")}
placeholder={t("iban-payment--tenant-street-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantStreet ?? ""}
onChange={(e) => handleTenantFieldChange("tenantStreet", e.target.value)}
@@ -148,14 +148,14 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<div className="form-control w-full mb-4">
<label className="label">
<span className="label-text">{t("tenant-town-label")}</span>
<span className="label-text">{t("iban-payment--tenant-town-label")}</span>
</label>
<input
id="tenantTown"
name="tenantTown"
type="text"
maxLength={27}
placeholder={t("tenant-town-placeholder")}
placeholder={t("iban-payment--tenant-town-placeholder")}
className="input input-bordered w-full placeholder:text-gray-600"
defaultValue={location?.tenantTown ?? ""}
onChange={(e) => handleTenantFieldChange("tenantTown", e.target.value)}
@@ -169,7 +169,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
))}
</div>
</div>
<InfoBox className="p-1 mb-1">{t("tenant-2d-code-note")}</InfoBox>
<InfoBox className="p-1 mb-1">{t("tenant--payment-instructions-note")}</InfoBox>
</>
)}
</fieldset>