Add toasts

This commit is contained in:
Sacha Weatherstone
2022-10-07 16:11:45 +10:30
parent d23fe966aa
commit 04f5eeaf47
19 changed files with 64 additions and 2 deletions
@@ -2,6 +2,7 @@ import type React from "react";
import { useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import toast from "react-hot-toast";
import { base16 } from "rfc4648";
import { Input } from "@app/components/form/Input.js";
@@ -46,6 +47,7 @@ export const User = (): JSX.Element => {
void connection?.setOwner({ ...myNode.data.user, ...data }, async () => {
reset({ ...data });
setLoading(false);
toast.success("Saved User Config, Restarting Node");
await Promise.resolve();
});
}