diff --git a/package-lock.json b/package-lock.json index a6ed0e6464d3..02d97c16521b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -81,7 +81,7 @@ "react-native-fast-image": "^8.6.3", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "2.12.0", - "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#cef3ac29d9501091453136e1219e24c4ec9f9d76", + "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#c8c2a873335df19081056a5667f5c109583882e1", "react-native-haptic-feedback": "^1.13.0", "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "^5.1.0", @@ -41099,8 +41099,8 @@ }, "node_modules/react-native-google-places-autocomplete": { "version": "2.5.1", - "resolved": "git+ssh://git@github.com/Expensify/react-native-google-places-autocomplete.git#cef3ac29d9501091453136e1219e24c4ec9f9d76", - "integrity": "sha512-2z3ED8jOXasPTzBqvPwpG10LQsBArTRsYszmoz+TfqbgZrSBmP3c8rhaC//lx6Pvfs2r+KYWqJUrLf4mbCrjZw==", + "resolved": "git+ssh://git@github.com/Expensify/react-native-google-places-autocomplete.git#c8c2a873335df19081056a5667f5c109583882e1", + "integrity": "sha512-jYQJlI5Pp/UI4k4Xy9fqnE0x4BC+O6c5Fh7I+7SjtaywA5KpZqQcYApx2e9YcH/igJ4Rdp/n4awKPX+vE5vFcg==", "license": "MIT", "dependencies": { "lodash.debounce": "^4.0.8", @@ -77228,9 +77228,9 @@ } }, "react-native-google-places-autocomplete": { - "version": "git+ssh://git@github.com/Expensify/react-native-google-places-autocomplete.git#cef3ac29d9501091453136e1219e24c4ec9f9d76", - "integrity": "sha512-2z3ED8jOXasPTzBqvPwpG10LQsBArTRsYszmoz+TfqbgZrSBmP3c8rhaC//lx6Pvfs2r+KYWqJUrLf4mbCrjZw==", - "from": "react-native-google-places-autocomplete@git+https://github.com/Expensify/react-native-google-places-autocomplete.git#cef3ac29d9501091453136e1219e24c4ec9f9d76", + "version": "git+ssh://git@github.com/Expensify/react-native-google-places-autocomplete.git#c8c2a873335df19081056a5667f5c109583882e1", + "integrity": "sha512-jYQJlI5Pp/UI4k4Xy9fqnE0x4BC+O6c5Fh7I+7SjtaywA5KpZqQcYApx2e9YcH/igJ4Rdp/n4awKPX+vE5vFcg==", + "from": "react-native-google-places-autocomplete@git+https://github.com/Expensify/react-native-google-places-autocomplete.git#c8c2a873335df19081056a5667f5c109583882e1", "requires": { "lodash.debounce": "^4.0.8", "prop-types": "^15.7.2", diff --git a/package.json b/package.json index bc52786de8ca..6159c827f7ca 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "react-native-fast-image": "^8.6.3", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "2.12.0", - "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#cef3ac29d9501091453136e1219e24c4ec9f9d76", + "react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#c8c2a873335df19081056a5667f5c109583882e1", "react-native-haptic-feedback": "^1.13.0", "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "^5.1.0", diff --git a/src/components/AddressSearch/index.js b/src/components/AddressSearch/index.js index 1b4200572664..14d13a63eec3 100644 --- a/src/components/AddressSearch/index.js +++ b/src/components/AddressSearch/index.js @@ -291,6 +291,12 @@ function AddressSearch(props) { {props.translate('common.noResultsFound')} ) } + renderHeaderComponent={() => + !props.value && + props.predefinedPlaces && ( + {props.translate('common.recentDestinations')} + ) + } onPress={(data, details) => { saveLocationDetails(data, details); diff --git a/src/languages/en.ts b/src/languages/en.ts index f16097aa03d1..abba4cfd71a3 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -176,6 +176,7 @@ export default { notifications: 'Notifications', na: 'N/A', noResultsFound: 'No results found', + recentDestinations: 'Recent destinations', timePrefix: "It's", conjunctionFor: 'for', todayAt: 'Today at', diff --git a/src/languages/es.ts b/src/languages/es.ts index 3860c34f6ef1..fde0d22f6ec2 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -166,6 +166,7 @@ export default { notifications: 'Notificaciones', na: 'N/A', noResultsFound: 'No se han encontrado resultados', + recentDestinations: 'Destinos recientes', timePrefix: 'Son las', conjunctionFor: 'para', todayAt: 'Hoy a las', diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 54269c197c1c..dda160d61795 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -250,7 +250,6 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp state: null, }} predefinedPlaces={recentWaypoints} - resultTypes="" />