diff --git a/src/pages/Map.tsx b/src/pages/Map.tsx index 126b99c8..6528c1a4 100644 --- a/src/pages/Map.tsx +++ b/src/pages/Map.tsx @@ -2,11 +2,17 @@ import type React from "react"; import maplibregl from "maplibre-gl"; import { Map, Marker, useMap } from "react-map-gl"; +import { base16 } from "rfc4648"; +import { Card } from "@app/components/Card.js"; import { IconButton } from "@app/components/IconButton.js"; +import { Mono } from "@app/components/Mono.js"; import { useDevice } from "@core/providers/useDevice.js"; import { Hashicon } from "@emeraldpay/hashicon-react"; -import { MapPinIcon } from "@heroicons/react/24/outline"; +import { + EllipsisHorizontalCircleIcon, + MapPinIcon, +} from "@heroicons/react/24/outline"; export const MapPage = (): JSX.Element => { const { nodes, waypoints } = useDevice(); @@ -14,31 +20,49 @@ export const MapPage = (): JSX.Element => { return (
-
-
Title
-
- {nodes.map((n) => ( -
- -
{n.data.user?.longName}
- } - size="sm" - onClick={() => { - if (n.data.position?.latitudeI) { - map?.flyTo({ - center: [ - n.data.position.longitudeI / 1e7, - n.data.position.latitudeI / 1e7, - ], - zoom: 10, - }); - } - }} - /> -
- ))} -
+
+ +
Title
+
+ {nodes.map((n) => ( +
+ + + +
+ {n.data.user?.longName} + + {base16 + .stringify(n.data.user?.macaddr ?? []) + .match(/.{1,2}/g) + ?.join(":") ?? ""} + +
+
+ } + onClick={() => { + if (n.data.position?.latitudeI) { + map?.flyTo({ + center: [ + n.data.position.longitudeI / 1e7, + n.data.position.latitudeI / 1e7, + ], + zoom: 10, + }); + } + }} + /> +
+
+ ))} +
+