add Toast library and handling server errors - WIP

This commit is contained in:
Pablo Lara committed 2024-08-02 18:43:58 +02:00
1 parent 26cfbeb3a8
commit 00613cdda3
13 files changed
+943 -146

No files matched your search

@@ -0,0 +1,10 @@
import { Button } from "@nextui-org/react";
import React from "react";
import { useFormStatus } from "react-dom";
export const ButtonAddProvider = () => {
const { pending } = useFormStatus();
return (
<Button type="submit">{pending ? "Adding..." : "Add provider"}</Button>
);
};