-
-
Power
+
+ }>
+
+
+
+
+
+ {batteryLevel}
+ %
+
+
+ {voltage}
+ v
+
- {batteryLevel}
- {voltage}
-
+
);
};
diff --git a/src/components/Widgets/ConfiguringWidget.tsx b/src/components/Widgets/ConfiguringWidget.tsx
index ba148182..a8a65e79 100644
--- a/src/components/Widgets/ConfiguringWidget.tsx
+++ b/src/components/Widgets/ConfiguringWidget.tsx
@@ -1,9 +1,11 @@
import React, { useEffect } from "react";
import { useDevice } from "@core/providers/useDevice.js";
+import { AdjustmentsHorizontalIcon } from "@heroicons/react/24/outline";
import { Button } from "../Button.js";
import { Card } from "../Card.js";
+import { Dropdown } from "../Dropdown.js";
export const ConfiguringWidget = (): JSX.Element => {
const {
@@ -36,43 +38,45 @@ export const ConfiguringWidget = (): JSX.Element => {
return (
-
- Power
-
-
-
-
-
-
-
-
-
-
-
+ }
+ >
+
+
+
+
+
+
+
+
+
+
+
);
};
diff --git a/src/components/Widgets/NodeInfoWidget.tsx b/src/components/Widgets/NodeInfoWidget.tsx
index f3e376a3..3d5beb59 100644
--- a/src/components/Widgets/NodeInfoWidget.tsx
+++ b/src/components/Widgets/NodeInfoWidget.tsx
@@ -1,8 +1,10 @@
import type React from "react";
+import { InformationCircleIcon } from "@heroicons/react/24/outline";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import { Card } from "../Card.js";
+import { Dropdown } from "../Dropdown.js";
export interface NodeInfoWidgetProps {
hardware: Protobuf.MyNodeInfo;
@@ -13,26 +15,28 @@ export const NodeInfoWidget = ({
}: NodeInfoWidgetProps): JSX.Element => {
return (
-
- Information
-
-
-
+ }
+ >
+
+
+
+
- Firmware version
+ -
+ {hardware.firmwareVersion}
+
+
+
-
- Firmware version
- -
- {hardware.firmwareVersion}
+
- Bitrate
+ -
+ {hardware.bitrate.toFixed(2)}
+ bps
-
-
-
- Bitrate
- -
- {hardware.bitrate.toFixed(2)}
- bps
-
-
+
);
};
diff --git a/src/components/Widgets/PeersWidget.tsx b/src/components/Widgets/PeersWidget.tsx
index 0b7af404..eca85aa1 100644
--- a/src/components/Widgets/PeersWidget.tsx
+++ b/src/components/Widgets/PeersWidget.tsx
@@ -3,10 +3,14 @@ import type React from "react";
import { base16 } from "rfc4648";
import { Hashicon } from "@emeraldpay/hashicon-react";
-import { EllipsisHorizontalCircleIcon } from "@heroicons/react/24/outline";
+import {
+ EllipsisHorizontalCircleIcon,
+ UserGroupIcon,
+} from "@heroicons/react/24/outline";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import { Card } from "../Card.js";
+import { Dropdown } from "../Dropdown.js";
import { IconButton } from "../IconButton.js";
import { Mono } from "../Mono.js";
@@ -16,12 +20,9 @@ export interface PeersWidgetProps {
export const PeersWidget = ({ peers }: PeersWidgetProps): JSX.Element => {
return (
-
-
-
- Peers
-
-
+
+ }>
+
{peers.map((peer) => (
{
))}
-
+
);
};
diff --git a/src/components/Widgets/PositionWidget.tsx b/src/components/Widgets/PositionWidget.tsx
index 9dd520e2..3686aa22 100644
--- a/src/components/Widgets/PositionWidget.tsx
+++ b/src/components/Widgets/PositionWidget.tsx
@@ -3,6 +3,7 @@ import type React from "react";
import { MapPinIcon } from "@heroicons/react/24/outline";
import { Card } from "../Card.js";
+import { Dropdown } from "../Dropdown.js";
export interface PositionWidgetProps {
grid: string;
@@ -10,16 +11,15 @@ export interface PositionWidgetProps {
export const PositionWidget = ({ grid }: PositionWidgetProps): JSX.Element => {
return (
-
-
-
-
-
-
-
Position
+
+ }>
+
- {grid}
-
+
);
};