diff --git a/src/ui/dropdown.tsx b/src/ui/dropdown.tsx index 100c795..11ff0ee 100644 --- a/src/ui/dropdown.tsx +++ b/src/ui/dropdown.tsx @@ -25,7 +25,7 @@ export const Dropdown = (props: DropdownProps) => { leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > - +
{props.children}
diff --git a/src/ui/modal.tsx b/src/ui/modal.tsx index e299553..320395f 100644 --- a/src/ui/modal.tsx +++ b/src/ui/modal.tsx @@ -2,7 +2,7 @@ import { Dialog, Transition } from "@headlessui/react"; import { Fragment } from "react"; interface ModalProps { - title: string; + title?: string; children: React.ReactNode; className?: string; open: boolean; @@ -37,12 +37,14 @@ const Modal = (props: ModalProps) => { leaveTo="opacity-0 scale-95" > - - {props.title} - + {props.title && ( + + {props.title} + + )} {props.children}