Add Toast lib to Messages page

This commit is contained in:
Tom Fifield
2024-05-26 18:41:48 +08:00
parent 390b16812a
commit 86263990e6
+4
View File
@@ -9,6 +9,8 @@ import { Protobuf, Types } from "@meshtastic/js";
import { getChannelName } from "@pages/Channels.js";
import { HashIcon, WaypointsIcon } from "lucide-react";
import { useState } from "react";
import { useToast } from "@core/hooks/useToast.js";
export const MessagesPage = (): JSX.Element => {
const { channels, nodes, hardware, messages, connection } = useDevice();
@@ -25,6 +27,8 @@ export const MessagesPage = (): JSX.Element => {
(ch) => ch.role !== Protobuf.Channel.Channel_Role.DISABLED,
);
const currentChannel = channels.get(activeChat);
const { toast } = useToast();
return (
<>