mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add place prop type helper
This commit is contained in:
parent
98a78a8b1e
commit
c8a3917d37
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue