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:
@@ -22,8 +22,8 @@ export interface UserSettings {
|
||||
ownerName?: string | null;
|
||||
/** owner street */
|
||||
ownerStreet?: string | null;
|
||||
/** town */
|
||||
town?: string | null;
|
||||
/** owner town */
|
||||
ownerTown?: string | null;
|
||||
/** IBAN */
|
||||
iban?: string | null;
|
||||
/** currency (ISO 4217) */
|
||||
|
||||
Reference in New Issue
Block a user