mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-10 11:51:29 +00:00
add Toast library and handling server errors - WIP
This commit is contained in:
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>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user