add dialog for new schedule

availability-list
Ryukemeister 2023-10-10 22:36:24 +05:30
parent 4a7a9e391e
commit e62bfc1825
1 changed files with 14 additions and 1 deletions

View File

@ -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>
);
}