mirror of
https://github.com/meshtastic/web.git
synced 2026-04-21 22:40:01 -04:00
Add toasts
This commit is contained in:
@@ -2,6 +2,7 @@ import type React from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { Controller, useForm, useWatch } from "react-hook-form";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
import { Input } from "@app/components/form/Input.js";
|
||||
import { Toggle } from "@app/components/form/Toggle.js";
|
||||
@@ -39,6 +40,7 @@ export const ExternalNotification = (): JSX.Element => {
|
||||
async (): Promise<void> => {
|
||||
reset({ ...data });
|
||||
setLoading(false);
|
||||
toast.success("Saved External Notification Config, Restarting Node");
|
||||
await Promise.resolve();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user