Start moduleConfig & general import cleanup

This commit is contained in:
Sacha Weatherstone
2023-01-29 17:36:31 +10:00
parent 6340809ab3
commit e36032045f
84 changed files with 286 additions and 780 deletions
+1 -4
View File
@@ -1,9 +1,6 @@
import type React from "react";
import { useEffect, useState } from "react";
import prettyMilliseconds from "pretty-ms";
import { useDevice } from "@app/core/providers/useDevice.js";
import { useDevice } from "@core/providers/useDevice.js";
import { Battery100Icon, ClockIcon } from "@heroicons/react/24/outline";
export interface BatteryWidgetProps {
+1 -3
View File
@@ -1,5 +1,3 @@
import type React from "react";
import { Button } from "@components/form/Button.js";
import { Hashicon } from "@emeraldpay/hashicon-react";
import { XCircleIcon } from "@heroicons/react/24/outline";
@@ -21,7 +19,7 @@ export const DeviceWidget = ({
}: DeviceWidgetProps): JSX.Element => {
return (
<div className="relative flex shrink-0 flex-col overflow-hidden rounded-md text-sm text-textPrimary">
<div className="bg-backgroundPrimary flex p-3">
<div className="flex bg-backgroundPrimary p-3">
<div>
<Hashicon size={96} value={nodeNum} />
</div>
+1 -3
View File
@@ -1,6 +1,4 @@
import type React from "react";
import { useDevice } from "@app/core/providers/useDevice.js";
import { useDevice } from "@core/providers/useDevice.js";
import { IconButton } from "@components/form/IconButton.js";
import { Mono } from "@components/generic/Mono.js";
import {
@@ -1,5 +1,3 @@
import type React from "react";
import { MapPinIcon } from "@heroicons/react/24/outline";
export interface PositionWidgetProps {