add more location fields

This commit is contained in:
Sacha Weatherstone
2022-08-09 23:07:08 +10:00
parent 1f2637eb12
commit 547a7ce1f7
3 changed files with 158 additions and 142 deletions
+18 -2
View File
@@ -1,6 +1,14 @@
import type React from "react";
import { LocateIcon, majorScale, minorScale, Pane, Text } from "evergreen-ui";
import {
Heading,
LocateIcon,
majorScale,
minorScale,
Pane,
Small,
Text,
} from "evergreen-ui";
import { toMGRS } from "@app/core/utils/toMGRS.js";
import type { Protobuf } from "@meshtastic/meshtasticjs";
@@ -26,7 +34,15 @@ export const LocationMessage = ({
padding={minorScale(1)}
>
<LocateIcon color="#474d66" marginY="auto" />
<Text>{toMGRS(location.latitudeI, location.longitudeI)}</Text>
<Pane>
<Pane display="flex" gap={majorScale(1)}>
<Heading>{location.name}</Heading>
<Text color="orange">
{toMGRS(location.latitudeI, location.longitudeI)}
</Text>
</Pane>
<Small>{location.description}</Small>
</Pane>
</Pane>
</Pane>
);