@woosmap/ui 4.213.0 → 4.214.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.213.0",
3
+ "version": "4.214.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -350,8 +350,14 @@ export default class AutocompleteAddressDemo extends Component {
350
350
  default:
351
351
  break;
352
352
  }
353
+ console.log(`country: ${country}`);
353
354
  });
354
-
355
+ let codeName = 'Postal Code';
356
+ if (country === 'United States') {
357
+ codeName = 'ZIP Code';
358
+ } else if (country === 'Ireland') {
359
+ codeName = 'Eircode';
360
+ }
355
361
  return (
356
362
  <>
357
363
  <div className="showcase-result-wrapper-col">
@@ -379,8 +385,8 @@ export default class AutocompleteAddressDemo extends Component {
379
385
  />
380
386
  <Input
381
387
  className="fullw"
382
- label="Postal code"
383
- placeholder="Postal code"
388
+ label={codeName}
389
+ placeholder={codeName}
384
390
  value={postcode}
385
391
  onChange={() => {}}
386
392
  />