From c8a3917d375a20bad643972b4b0443632dd92ade Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Tue, 7 Mar 2017 16:48:17 +0200 Subject: [PATCH] Add place prop type helper --- src/util/propTypes.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/propTypes.js b/src/util/propTypes.js index d9e2a026..688f8b93 100644 --- a/src/util/propTypes.js +++ b/src/util/propTypes.js @@ -41,6 +41,13 @@ export const route = shape({ loadData: func, }); +// Place object from LocationAutocompleteInput +export const place = shape({ + address: string.isRequired, + origin: latlng.isRequired, + bounds: latlngBounds, // optional viewport bounds +}); + // Denormalised user object export const user = shape({ id: uuid.isRequired,