Rename autoTenantNotification to autoBillFwd and update related references in forms and translations

This commit is contained in:
Knee Cola
2025-11-18 09:38:04 +01:00
parent 3411ee3cb5
commit c5fe184f9c
5 changed files with 20 additions and 20 deletions

View File

@@ -33,8 +33,8 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
);
// Track whether to automatically notify tenant (use persisted value from database)
const [autoTenantNotification, setAutoTenantNotification] = useState(
location?.autoTenantNotification ?? false
const [autoBillFwd, setautoBillFwd] = useState(
location?.autoBillFwd ?? false
);
// Track tenant field values for real-time validation
@@ -147,16 +147,16 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
<label className="label cursor-pointer justify-start gap-3">
<input
type="checkbox"
name="autoTenantNotification"
name="autoBillFwd"
className="toggle toggle-primary"
checked={autoTenantNotification}
onChange={(e) => setAutoTenantNotification(e.target.checked)}
checked={autoBillFwd}
onChange={(e) => setautoBillFwd(e.target.checked)}
/>
<span className="label-text">{t("auto-tenant-notification")}</span>
<span className="label-text">{t("auto-utility-bill-forwarding")}</span>
</label>
</div>
{autoTenantNotification && (
{autoBillFwd && (
<div className="form-control w-full">
<label className="label">
<span className="label-text">{t("tenant-email-label")}</span>