From fadd4ea5908752103e31a3c1207d5065d5b8bee5 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 8 Oct 2022 21:33:45 +1030 Subject: [PATCH] Update PositionWidget & fix BatteryWidget --- src/components/Widgets/BatteryWidget.tsx | 2 +- src/components/Widgets/PositionWidget.tsx | 24 +++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/Widgets/BatteryWidget.tsx b/src/components/Widgets/BatteryWidget.tsx index 1700e9f5..d7015f59 100644 --- a/src/components/Widgets/BatteryWidget.tsx +++ b/src/components/Widgets/BatteryWidget.tsx @@ -79,7 +79,7 @@ export const BatteryWidget = ({ className="text-Orange-500 h-5 w-5 flex-shrink-0 self-center" aria-hidden="true" /> - Unknown + {timeRemaining}

diff --git a/src/components/Widgets/PositionWidget.tsx b/src/components/Widgets/PositionWidget.tsx index 3686aa22..7d15f224 100644 --- a/src/components/Widgets/PositionWidget.tsx +++ b/src/components/Widgets/PositionWidget.tsx @@ -2,24 +2,24 @@ 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; } export const PositionWidget = ({ grid }: PositionWidgetProps): JSX.Element => { return ( - - }> -
-
- -
- {grid} +
+
+
+
- - +

+ Current Location +

+
+
+

{grid}

+
+
); };