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,8 +6,8 @@ import "styled-components/macro"
|
|||
|
||||
function Modal({ isOpen, onBackdropClick, ...props }) {
|
||||
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">
|
||||
<Third {...props} onClick={e=>e.stopPropagation()}>
|
||||
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()}>
|
||||
{props.children}
|
||||
</Third>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user