add dialog for new schedule
parent
4a7a9e391e
commit
e62bfc1825
|
@ -1,9 +1,22 @@
|
|||
import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";
|
||||
|
||||
import { Button } from "../src/components/ui/button";
|
||||
import { Form } from "./Form";
|
||||
|
||||
export function NewScheduleButton({ name = "new-schedule" }: { name?: string }) {
|
||||
return (
|
||||
<div>
|
||||
<Form />
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button>New</Button>
|
||||
</DialogTrigger>
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>Add new schedule</DialogTitle>
|
||||
<Form />
|
||||
</DialogHeader>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue