From 112ecfae1e6b6a5758791294577a1830468ace8e Mon Sep 17 00:00:00 2001 From: Hunter Thornsberry Date: Wed, 2 Oct 2024 22:58:08 -0400 Subject: [PATCH] biome --- src/components/DeviceSelector.tsx | 4 ++-- src/core/subscriptions.ts | 6 +++--- src/core/utils/notify.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/DeviceSelector.tsx b/src/components/DeviceSelector.tsx index bdd4cf41..126392b0 100644 --- a/src/components/DeviceSelector.tsx +++ b/src/components/DeviceSelector.tsx @@ -5,6 +5,8 @@ import { useAppStore } from "@core/stores/appStore.js"; import { useDeviceStore } from "@core/stores/deviceStore.js"; import { Hashicon } from "@emeraldpay/hashicon-react"; import { + BellIcon, + BellOffIcon, HomeIcon, LanguagesIcon, MoonIcon, @@ -12,8 +14,6 @@ import { SearchIcon, SunIcon, TerminalIcon, - BellIcon, - BellOffIcon, } from "lucide-react"; export const DeviceSelector = (): JSX.Element => { diff --git a/src/core/subscriptions.ts b/src/core/subscriptions.ts index 509eb96f..9ba284fd 100644 --- a/src/core/subscriptions.ts +++ b/src/core/subscriptions.ts @@ -1,5 +1,5 @@ import type { Device } from "@core/stores/deviceStore.js"; -import { Protobuf, Types } from "@meshtastic/js"; +import { Protobuf, type Types } from "@meshtastic/js"; import { playNotificationSound } from "./utils/notify"; export const subscribeAll = ( @@ -85,9 +85,9 @@ export const subscribeAll = ( ...messagePacket, state: messagePacket.from !== myNodeNum ? "ack" : "waiting", }); - if(messagePacket.from !== myNodeNum){ + if (messagePacket.from !== myNodeNum) { playNotificationSound(); - } + } }); connection.events.onTraceRoutePacket.subscribe((traceRoutePacket) => { diff --git a/src/core/utils/notify.ts b/src/core/utils/notify.ts index 19d451b8..2f15b8f0 100644 --- a/src/core/utils/notify.ts +++ b/src/core/utils/notify.ts @@ -1,4 +1,4 @@ -import { useAppStore } from '@core/stores/appStore.js'; +import { useAppStore } from "@core/stores/appStore.js"; const notificationSound = new Audio("/notification.wav"); //change sound if needed