@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
|
@@ -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=
|
|
383
|
-
placeholder=
|
|
388
|
+
label={codeName}
|
|
389
|
+
placeholder={codeName}
|
|
384
390
|
value={postcode}
|
|
385
391
|
onChange={() => {}}
|
|
386
392
|
/>
|