mirror of
https://github.com/meshtastic/web.git
synced 2026-05-01 19:22:53 -04:00
Update PositionWidget & fix BatteryWidget
This commit is contained in:
@@ -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}
|
||||
</p>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -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 (
|
||||
<Card className="flex-col">
|
||||
<Dropdown title="Position" icon={<MapPinIcon className="h-4" />}>
|
||||
<div className="flex">
|
||||
<div className="flex w-20 bg-teal-600 p-3">
|
||||
<MapPinIcon className="m-auto h-12 text-white" />
|
||||
</div>
|
||||
<span className="m-auto text-lg">{grid}</span>
|
||||
<div className="relative overflow-hidden rounded-lg bg-white p-4 shadow">
|
||||
<dt>
|
||||
<div className="absolute rounded-md bg-rose-500 p-3">
|
||||
<MapPinIcon className="h-6 text-white" aria-hidden="true" />
|
||||
</div>
|
||||
</Dropdown>
|
||||
</Card>
|
||||
<p className="ml-16 truncate text-sm font-medium text-gray-500">
|
||||
Current Location
|
||||
</p>
|
||||
</dt>
|
||||
<dd className="ml-16 flex items-baseline">
|
||||
<p className="text-2xl font-semibold text-gray-900">{grid}</p>
|
||||
</dd>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user