Skip to content

Commit

Permalink
Merge branch 'alpha' of github.com:supabase/ui into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
joshenlim committed Sep 2, 2022
2 parents fe7b979 + 5be5928 commit d9a8120
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { Transition } from '@headlessui/react'
import styleHandler from '../../lib/theme/styleHandler'

// import { Transition } from '@tailwindui/react'
// Merge Radix Props to surface in the modal component
export type ModalProps = RadixProps & Props

interface RadixProps
extends Dialog.DialogProps,
Expand Down Expand Up @@ -80,7 +82,8 @@ const Modal = ({
overlayClassName,
triggerElement,
header,
}: Props) => {
...props
}: ModalProps) => {
const [open, setOpen] = React.useState(visible ? visible : false)

const __styles = styleHandler('modal')
Expand Down Expand Up @@ -159,6 +162,7 @@ const Modal = ({
<Dialog.Overlay className={__styles.scroll_overlay}>
<Dialog.Content
className={[__styles.base, __styles.size[size]].join(' ')}
onInteractOutside={props.onInteractOutside}
>
{header && <div className={__styles.header}>{header}</div>}
{/* <div
Expand Down

0 comments on commit d9a8120

Please sign in to comment.