New Container

This commit is contained in:
Belen Curcio
2020-10-22 18:13:45 -03:00
parent 5fabcd4789
commit 400e40358b
11 changed files with 34 additions and 22 deletions

View File

@@ -21,11 +21,14 @@ const Modal: FC<Props> = ({
}) => {
const rootClassName = cn(s.root, className)
let ref = useRef() as React.MutableRefObject<HTMLInputElement>
usePreventScroll()
let { modalProps } = useModal()
let { overlayProps } = useOverlay(props, ref)
let { dialogProps } = useDialog(props, ref)
usePreventScroll({
isDisabled: !show,
})
return (
<div className={rootClassName}>
<FocusScope contain restoreFocus autoFocus>