Skip to content

Commit

Permalink
Merge pull request #604 from vtex/Add/required-prop-postalCode-4.x
Browse files Browse the repository at this point in the history
Avoid optional field at my account for Postal Code
  • Loading branch information
beatrizmaselli authored Aug 30, 2024
2 parents 188cfa2 + 9ee3cc8 commit f83074e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- Required prop for postalCode at DNK, FIN, GIB, LTU and SWE country rules.
- Required prop for emirates at ARE country rule.
- Placeholder prop empty for default country rule.

## [4.24.6] - 2024-07-15

### Added
- implemented autoUpperCase rule for countries with alphanumeric postal codes, ensuring consistent uppercase formatting.
- Implemented autoUpperCase rule for countries with alphanumeric postal codes, ensuring consistent uppercase formatting.

## [4.24.5] - 2024-07-05

Expand Down
1 change: 1 addition & 0 deletions react/country/ARE.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
name: 'reference',
maxLength: 750,
label: 'emirates',
required: true,
size: 'xlarge',
level: 1,
options: getOneLevel(emiratesPostalCodeData),
Expand Down
1 change: 1 addition & 0 deletions react/country/DNK.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
required: true,
size: 'small',
autoComplete: 'nope',
postalCodeAPI: false,
Expand Down
1 change: 1 addition & 0 deletions react/country/FIN.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
required: true,
size: 'small',
autoComplete: 'nope',
postalCodeAPI: false,
Expand Down
1 change: 1 addition & 0 deletions react/country/GIB.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
required: true,
size: 'small',
autoComplete: 'nope',
postalCodeAPI: false,
Expand Down
1 change: 1 addition & 0 deletions react/country/LTU.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
required: true,
size: 'small',
autoComplete: 'nope',
postalCodeAPI: false,
Expand Down
1 change: 1 addition & 0 deletions react/country/SWE.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
name: 'postalCode',
maxLength: 50,
label: 'postalCode',
required: true,
size: 'small',
autoComplete: 'nope',
postalCodeAPI: false,
Expand Down
1 change: 1 addition & 0 deletions react/country/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
label: 'postalCode',
size: 'small',
autoComplete: 'nope',
placeholder: '',
postalCodeAPI: false,
},
{
Expand Down

0 comments on commit f83074e

Please sign in to comment.