Add pings back to map

This commit is contained in:
Fergal Moran
2024-01-29 20:30:08 +00:00
parent bdcf7c345f
commit f3d5b025ef

View File

@@ -27,8 +27,7 @@ const MainMap: React.FC<MainMapProps> = ({ kids }) => {
zoom={10} zoom={10}
scrollWheelZoom={true} scrollWheelZoom={true}
> >
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"> <TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<>
{kids?.map((kid) => {kids?.map((kid) =>
kid.devices?.map((device) => kid.devices?.map((device) =>
device.pings.map((ping) => ( device.pings.map((ping) => (
@@ -45,8 +44,6 @@ const MainMap: React.FC<MainMapProps> = ({ kids }) => {
)), )),
), ),
)} )}
</>
</TileLayer>
</MapContainer> </MapContainer>
</div> </div>
); );