Skip to content

Commit

Permalink
fix: Remove unused IntlProvider in MapView
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Oct 31, 2019
1 parent 3e2dfb6 commit fa5c45b
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions src/MapView/MapViewContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,39 +227,37 @@ const MapViewContent = (
}

return (
<IntlProvider>
<Mapbox
style={mapStyle}
className={classes.container}
fitBounds={initialBounds}
fitBoundsOptions={fitBoundsOptions}
onStyleLoad={handleStyleLoad}
onMove={handleMapMove}
{...position}>
<ObservationLayer
observations={observations}
onClick={onClick}
onMouseLeave={handleMouseLeave}
onMouseMove={handleMouseMove}
print={print}
<Mapbox
style={mapStyle}
className={classes.container}
fitBounds={initialBounds}
fitBoundsOptions={fitBoundsOptions}
onStyleLoad={handleStyleLoad}
onMove={handleMapMove}
{...position}>
<ObservationLayer
observations={observations}
onClick={onClick}
onMouseLeave={handleMouseLeave}
onMouseMove={handleMouseMove}
print={print}
/>
{hovered && (
<Popup
imageUrl={getLastImageUrl(hovered)}
title={getName(hovered)}
subtitle={intl.formatTime(hovered.created_at, {
year: 'numeric',
month: 'long',
day: '2-digit'
})}
coordinates={
// $FlowFixMe - these are always non-nullish when on a map
[hovered.lon, hovered.lat]
}
/>
{hovered && (
<Popup
imageUrl={getLastImageUrl(hovered)}
title={getName(hovered)}
subtitle={intl.formatTime(hovered.created_at, {
year: 'numeric',
month: 'long',
day: '2-digit'
})}
coordinates={
// $FlowFixMe - these are always non-nullish when on a map
[hovered.lon, hovered.lat]
}
/>
)}
</Mapbox>
</IntlProvider>
)}
</Mapbox>
)
}

Expand Down

0 comments on commit fa5c45b

Please sign in to comment.