mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 23:34:27 +00:00
feat(modal): Add in modal component v1
This commit is contained in:
1 parent
0bdfa1a3b9
commit
3bd84a0efd
5 files changed
+78
-62
No files matched your search
@@ -1,13 +1,35 @@
|
||||
"use client";
|
||||
|
||||
import { Button, useDisclosure } from "@nextui-org/react";
|
||||
import React from "react";
|
||||
|
||||
import { Header } from "@/components";
|
||||
import { Header, Modal } from "@/components";
|
||||
|
||||
export default function Providers() {
|
||||
const { isOpen, onOpen, onClose, onOpenChange } = useDisclosure();
|
||||
|
||||
const onAction = () => {
|
||||
onClose();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Header title="Providers" icon="tabler:zoom-scan" />
|
||||
|
||||
<p>Hi hi from Providers page</p>
|
||||
<Button onPress={onOpen}>Open Modal</Button>
|
||||
<Modal
|
||||
isOpen={isOpen}
|
||||
onOpenChange={onOpenChange}
|
||||
title="Overview Modal"
|
||||
body={
|
||||
<>
|
||||
<p>Modal body content</p>
|
||||
</>
|
||||
}
|
||||
actionText="Save"
|
||||
onAction={onAction}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user