fix: change color of pins and show population instead of depth (#402)
This commit is contained in:
@@ -47,7 +47,7 @@ function addPins(map: DottedMap, pins: MapRecord[], color: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mapPrecomputed = new DottedMap({ map: JSON.parse(mapData) })
|
const mapPrecomputed = new DottedMap({ map: JSON.parse(mapData) })
|
||||||
addPins(mapPrecomputed, deduplicatedRecords, '#dd7200')
|
addPins(mapPrecomputed, deduplicatedRecords, '#303030')
|
||||||
|
|
||||||
const mapSvgOptions: DottedMapWithoutCountriesLib.SvgSettings = { shape: 'hexagon', radius: 0.21, color: '#dadada' }
|
const mapSvgOptions: DottedMapWithoutCountriesLib.SvgSettings = { shape: 'hexagon', radius: 0.21, color: '#dadada' }
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ export default function Card({ style }: Props): ReactElement {
|
|||||||
|
|
||||||
const points = findIntersection(fullMapDb, peers)
|
const points = findIntersection(fullMapDb, peers)
|
||||||
const mapNew = Object.create(mapPrecomputed)
|
const mapNew = Object.create(mapPrecomputed)
|
||||||
addPins(mapNew, points, '#67BE68')
|
addPins(mapNew, points, '#09CA6C')
|
||||||
setMap(mapNew.getSVG(mapSvgOptions))
|
setMap(mapNew.getSVG(mapSvgOptions))
|
||||||
}, [peers])
|
}, [peers])
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default function Status(): ReactElement {
|
|||||||
<Map />
|
<Map />
|
||||||
<div style={{ height: '2px' }} />
|
<div style={{ height: '2px' }} />
|
||||||
<ExpandableListItem label="Connected peers" value={topology?.connected ?? '-'} />
|
<ExpandableListItem label="Connected peers" value={topology?.connected ?? '-'} />
|
||||||
<ExpandableListItem label="Depth" value={topology?.depth ?? '-'} />
|
<ExpandableListItem label="Population" value={topology?.population ?? '-'} />
|
||||||
<div style={{ height: '16px' }} />
|
<div style={{ height: '16px' }} />
|
||||||
<ExpandableListItem
|
<ExpandableListItem
|
||||||
label="Bee version"
|
label="Bee version"
|
||||||
|
|||||||
Reference in New Issue
Block a user