diff options
| author | Factiven <[email protected]> | 2023-04-14 00:14:12 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-14 00:14:12 +0700 |
| commit | 70fda74d27d9b55c9030932794daa25c1e6cf50d (patch) | |
| tree | 0c1f639be4e8ec1b960ba642b8e99c1485e83b1a /pages/components/modal.js | |
| parent | Update 5th (diff) | |
| download | moopa-70fda74d27d9b55c9030932794daa25c1e6cf50d.tar.xz moopa-70fda74d27d9b55c9030932794daa25c1e6cf50d.zip | |
Update 6th
Diffstat (limited to 'pages/components/modal.js')
| -rw-r--r-- | pages/components/modal.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pages/components/modal.js b/pages/components/modal.js deleted file mode 100644 index 0a9d349..0000000 --- a/pages/components/modal.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function Modal({ open, onClose, children }) { - return ( - <div - onClick={onClose} - className={`fixed z-50 inset-0 flex justify-center items-center transition-colors ${ - open ? "visible bg-black bg-opacity-50" : "invisible" - }`} - > - <div - onClick={(e) => e.stopPropagation()} - className={`shadow rounded-xl p-6 transition-all ${ - open ? "scale-125 opacity-100" : "scale-100 opacity-0" - }`} - > - {children} - </div> - </div> - ); -} |