Skip to main content

populate_places

Function populate_places 

Source
pub fn populate_places<F>(
    parts: &ExploreViewParts,
    ctx: Arc<AppContext>,
    places: Vec<PlaceItem>,
    on_click: F,
)
where F: Fn(&str, String, String) + 'static,
Expand description

Populate the city tiles representing locations in the places dashboard section.

Caches places data so subsequent visits don’t re-fetch from the server. Shows the first 16 tiles with a “See More” button to expand.