Skip to content

Commit e34b68a

Browse files
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 <[email protected]>
1 parent 848f497 commit e34b68a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/modules/Modal/Modal.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Modal.propTypes = {
341341
onClose: PropTypes.func,
342342

343343
/**
344-
* Called when the portal is mounted on the DOM.
344+
* Called when the modal is mounted on the DOM.
345345
*
346346
* @param {null}
347347
* @param {object} data - All props.
@@ -357,7 +357,7 @@ Modal.propTypes = {
357357
onOpen: PropTypes.func,
358358

359359
/**
360-
* Called when the portal is unmounted from the DOM.
360+
* Called when the modal is unmounted from the DOM.
361361
*
362362
* @param {null}
363363
* @param {object} data - All props.
@@ -373,12 +373,12 @@ Modal.propTypes = {
373373
/** Custom styles. */
374374
style: PropTypes.object,
375375

376-
/** Element to be rendered in-place where the portal is defined. */
376+
/** Element to be rendered in-place where the modal is defined. */
377377
trigger: PropTypes.node,
378378

379379
/**
380-
* NOTE: Any unhandled props that are defined in Portal are passed-through
381-
* to the wrapping Portal.
380+
* NOTE: Any unhandled props that are defined in Modal are passed-through
381+
* to the inner Portal.
382382
*/
383383
}
384384

0 commit comments

Comments
 (0)