Add place prop type helper

This commit is contained in:
Kimmo Puputti 2017-03-07 16:48:17 +02:00
parent 98a78a8b1e
commit c8a3917d37

View file

@ -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,