diff --git a/src/bootstrap/Modal.js b/src/bootstrap/Modal.js index 42e24f1..d7d69e6 100644 --- a/src/bootstrap/Modal.js +++ b/src/bootstrap/Modal.js @@ -17,6 +17,7 @@ Modal.propTypes = { shown: PropTypes.bool.isRequired, /** Callback to manage modal visibility */ setShown: PropTypes.func.isRequired, + scrollable: PropTypes.bool, /** Modal content use following: `ModalHeader`, `ModalBody`, `ModalFooter` */ children: PropTypes.oneOfType([ @@ -25,7 +26,9 @@ Modal.propTypes = { ]).isRequired, }; -export function Modal({ shown, setShown, children }) { +export function Modal({ + shown, setShown, scrollable, children, +}) { const dialogRef = useRef(); useClickOutside(dialogRef, () => setShown(false)); @@ -33,7 +36,11 @@ export function Modal({ shown, setShown, children }) { return (
-
+
{children}