From e34b68a3af1cd60eb917418de11419a67704ce92 Mon Sep 17 00:00:00 2001 From: Taha Date: Fri, 14 Jan 2022 16:32:48 +0300 Subject: [PATCH] docs(Modal): update props' description (#4291) * Update Modal.js I suppose Modal is just a specialized Portal (or vice-versa?) but I suppose props docs for modal could be less ambiguous with these small changes. * Update src/modules/Modal/Modal.js Co-authored-by: Oleksandr Fediashov --- src/modules/Modal/Modal.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/Modal/Modal.js b/src/modules/Modal/Modal.js index 63f9d856b6..83268b2d31 100644 --- a/src/modules/Modal/Modal.js +++ b/src/modules/Modal/Modal.js @@ -341,7 +341,7 @@ Modal.propTypes = { onClose: PropTypes.func, /** - * Called when the portal is mounted on the DOM. + * Called when the modal is mounted on the DOM. * * @param {null} * @param {object} data - All props. @@ -357,7 +357,7 @@ Modal.propTypes = { onOpen: PropTypes.func, /** - * Called when the portal is unmounted from the DOM. + * Called when the modal is unmounted from the DOM. * * @param {null} * @param {object} data - All props. @@ -373,12 +373,12 @@ Modal.propTypes = { /** Custom styles. */ style: PropTypes.object, - /** Element to be rendered in-place where the portal is defined. */ + /** Element to be rendered in-place where the modal is defined. */ trigger: PropTypes.node, /** - * NOTE: Any unhandled props that are defined in Portal are passed-through - * to the wrapping Portal. + * NOTE: Any unhandled props that are defined in Modal are passed-through + * to the inner Portal. */ }