mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 22:54:42 +02:00
style(radial): match Navi color palette in light and dark themes
This commit is contained in:
parent
741d760760
commit
15e6267022
17 changed files with 6318 additions and 47 deletions
10
src/utils/place.js
Normal file
10
src/utils/place.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/** Build display address from raw result data */
|
||||
export function buildAddress(place) {
|
||||
if (place.address) return place.address
|
||||
const raw = place.raw || {}
|
||||
const street = raw.housenumber && raw.street
|
||||
? `${raw.housenumber} ${raw.street}`
|
||||
: raw.street
|
||||
const parts = [street, raw.city, raw.state, raw.postcode].filter(Boolean)
|
||||
return parts.join(', ') || null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue