From 75596e7153130195552526debc94f34d5853d100 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Sun, 2 Mar 2025 14:46:02 -0500 Subject: [PATCH] chore: fixes from deno linting/formatting --- src/App.tsx | 38 +++++++++---------- src/PageRouter.tsx | 2 +- src/components/DeviceSelector.tsx | 1 - src/components/Dialog/DeviceNameDialog.tsx | 2 +- src/components/Dialog/DialogManager.tsx | 2 +- src/components/Dialog/RemoveNodeDialog.tsx | 2 +- src/components/Form/DynamicForm.tsx | 2 +- .../Config/Security/Security.tsx | 12 +++--- .../PageComponents/Connect/HTTP.tsx | 6 +-- .../PageComponents/Connect/Serial.tsx | 5 ++- .../PageComponents/Map/NodeDetail.tsx | 8 ++-- .../PageComponents/Messages/ChannelChat.tsx | 5 +-- .../PageComponents/Messages/Message.tsx | 6 +-- .../PageComponents/Messages/TraceRoute.tsx | 2 +- .../ModuleConfig/AmbientLighting.tsx | 2 +- .../ModuleConfig/DetectionSensor.tsx | 2 +- .../PageComponents/ModuleConfig/MQTT.tsx | 2 +- .../ModuleConfig/NeighborInfo.tsx | 2 +- src/components/PageLayout.tsx | 2 +- src/components/UI/ErrorPage.tsx | 8 ++-- src/components/UI/Sidebar/SidebarSection.tsx | 2 +- src/components/UI/Typography/Heading.tsx | 3 +- src/components/UI/Typography/P.tsx | 2 +- src/components/UI/Typography/Subtle.tsx | 2 +- src/core/utils/github.ts | 3 +- src/pages/Channels.tsx | 2 +- src/pages/Config/ModuleConfig.tsx | 6 +-- src/pages/Config/index.tsx | 2 +- src/pages/Dashboard/index.tsx | 8 ++-- src/pages/Nodes.tsx | 18 ++++----- 30 files changed, 76 insertions(+), 83 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 164e5743..29e80aa1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,11 +10,13 @@ import Footer from "@components/UI/Footer.tsx"; import { useAppStore } from "@core/stores/appStore.ts"; import { useDeviceStore } from "@core/stores/deviceStore.ts"; import { Dashboard } from "@pages/Dashboard/index.tsx"; +import type { JSX } from "react"; import { ErrorBoundary } from "react-error-boundary"; -import { ErrorPage } from "./components/UI/ErrorPage.tsx"; +import { ErrorPage } from "@components/UI/ErrorPage.tsx"; import { MapProvider } from "react-map-gl/maplibre"; -export const App = () => { + +export const App = (): JSX.Element => { const { getDevice } = useDeviceStore(); const { selectedDevice, setConnectDialogOpen, connectDialogOpen } = useAppStore(); @@ -35,23 +37,21 @@ export const App = () => {
- {device - ? ( -
- - - - - - -
- ) - : ( - <> - -
- - )} + {device ? ( +
+ + + + + + +
+ ) : ( + <> + +
+ + )}
diff --git a/src/PageRouter.tsx b/src/PageRouter.tsx index ceff7bdb..f59cb6fe 100644 --- a/src/PageRouter.tsx +++ b/src/PageRouter.tsx @@ -5,7 +5,7 @@ import ConfigPage from "@pages/Config/index.tsx"; import MessagesPage from "@pages/Messages.tsx"; import NodesPage from "@pages/Nodes.tsx"; import { ErrorBoundary } from "react-error-boundary"; -import { ErrorPage } from "./components/UI/ErrorPage"; +import { ErrorPage } from "./components/UI/ErrorPage.tsx"; export const ErrorBoundaryWrapper = ({ children, diff --git a/src/components/DeviceSelector.tsx b/src/components/DeviceSelector.tsx index d53f5051..872b9c04 100644 --- a/src/components/DeviceSelector.tsx +++ b/src/components/DeviceSelector.tsx @@ -15,7 +15,6 @@ export const DeviceSelector = () => { setCommandPaletteOpen, setConnectDialogOpen, } = useAppStore(); - console.log(import.meta.env.VITE_COMMIT_HASH); return (