Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 25x 25x 25x 25x 2x 2x 2x 25x | import AddressSelector from './AddressSelector'; import AddressSelectorUK from './AddressSelectorUk'; export default class AddressSelectorFactory { static create(autocompleteData: google.maps.places.PlaceResult): AddressSelector { const addressSelector = new AddressSelector(autocompleteData); switch (addressSelector.getCountry()) { case 'GB': return new AddressSelectorUK(autocompleteData); } return addressSelector; } } |