Rename autoTenantNotification to autoBillFwd and update related references in forms and translations
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user