update deps, fix build

This commit is contained in:
Sacha Weatherstone
2024-01-24 22:01:28 +10:00
parent 72bfd44b1f
commit f997faa072
7 changed files with 546 additions and 529 deletions
+3 -2
View File
@@ -8,7 +8,8 @@ import { Channel } from "@components/PageComponents/Channel.js";
import { PageLayout } from "@components/PageLayout.js";
import { Sidebar } from "@components/Sidebar.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf, Types } from "@meshtastic/js";
import { Types } from "@meshtastic/js";
import type { Protobuf } from "@meshtastic/js";
import { ImportIcon, QrCodeIcon } from "lucide-react";
import { useState } from "react";
@@ -22,7 +23,7 @@ export const getChannelName = (channel: Protobuf.Channel.Channel) =>
export const ChannelsPage = (): JSX.Element => {
const { channels, setDialogOpen } = useDevice();
const [activeChannel, setActiveChannel] = useState<Types.ChannelNumber>(
Types.ChannelNumber.PRIMARY,
Types.ChannelNumber.Primary,
);
const currentChannel = channels.get(activeChannel);