Modals, but better
This commit is contained in:
parent
785afea4a5
commit
0ee3911096
0
Form/index.js
Normal file
0
Form/index.js
Normal file
|
|
@ -6,7 +6,7 @@ import "styled-components/macro"
|
||||||
|
|
||||||
function Modal({ isOpen, onBackdropClick, ...props }) {
|
function Modal({ isOpen, onBackdropClick, ...props }) {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
return <div onClick={onBackdropClick} tw="fixed flex flex-col justify-center items-center inset-0 bg-gray-800 bg-opacity-75 z-50">
|
return <div onClick={onBackdropClick} tw="fixed flex flex-col items-center inset-0 bg-gray-800 bg-opacity-75 z-50 overflow-y-auto lg:py-8">
|
||||||
<Third {...props} onClick={e => e.stopPropagation()}>
|
<Third {...props} onClick={e => e.stopPropagation()}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</Third>
|
</Third>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user