mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 18:56:54 +00:00
Change all Modal references to Dialog
This commit is contained in:
1 parent
05ba7b41d1
commit
865c5678bc
1 file changed
+3
-3
@@ -1,8 +1,8 @@
|
||||
// Modal as a separate component
|
||||
// Dialog as a separate component
|
||||
const React = require('react');
|
||||
const { useState, useRef, useEffect } = React;
|
||||
|
||||
function Modal({ dismissKey, blocking, children, closeText = 'Close', ...rest }) {
|
||||
function Dialog({ dismissKey, closeText = 'Close', blocking = false, children, ...rest }) {
|
||||
const ref = useRef();
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
@@ -45,4 +45,4 @@ function Modal({ dismissKey, blocking, children, closeText = 'Close', ...rest })
|
||||
);
|
||||
}
|
||||
|
||||
export default Modal;
|
||||
export default Dialog;
|
||||
Reference in new issue
Block a user