Rename 'town' to 'ownerTown' in UserSettings with 27 character max length
Changes:
- Updated UserSettings interface: town -> ownerTown
- Updated userSettingsActions.ts:
- Changed State type to use ownerTown
- Added max length validation (27 characters) to FormSchema
- Updated validation refinement to check ownerTown
- Updated form data parsing to read ownerTown
- Updated database write operations to use ownerTown
- Updated UserSettingsForm.tsx:
- Changed state tracking to use ownerTown
- Updated validation check to reference ownerTown
- Updated input field: id, name, maxLength={27}
- Updated ViewLocationCard.tsx to use ownerTown instead of town
- Updated English translations:
- town-label -> owner-town-label: "Your Postal Code and Town"
- town-placeholder -> owner-town-placeholder
- town-required -> owner-town-required
- Updated Croatian translations with corresponding ownerTown keys
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -193,8 +193,8 @@
|
||||
"owner-name-placeholder": "enter your first and last name",
|
||||
"owner-street-label": "Your Street and House Number",
|
||||
"owner-street-placeholder": "enter your street and house number",
|
||||
"town-label": "Town",
|
||||
"town-placeholder": "enter your town",
|
||||
"owner-town-label": "Your Postal Code and Town",
|
||||
"owner-town-placeholder": "enter your postal code and town",
|
||||
"iban-label": "IBAN",
|
||||
"iban-placeholder": "enter your IBAN",
|
||||
"currency-label": "Currency",
|
||||
@@ -203,7 +203,7 @@
|
||||
"validation": {
|
||||
"owner-name-required": "Name is mandatory",
|
||||
"owner-street-required": "Street is mandatory",
|
||||
"town-required": "Town is mandatory",
|
||||
"owner-town-required": "Town is mandatory",
|
||||
"iban-required": "Valid IBAN is mandatory",
|
||||
"iban-invalid": "Invalid IBAN format. Please enter a valid IBAN",
|
||||
"currency-required": "Currency is mandatory",
|
||||
|
||||
Reference in New Issue
Block a user