diff --git a/packages/react/src/components/ComposedModal/ComposedModal-story.js b/packages/react/src/components/ComposedModal/ComposedModal-story.js index 459ee5295228..25e8d0434e30 100644 --- a/packages/react/src/components/ComposedModal/ComposedModal-story.js +++ b/packages/react/src/components/ComposedModal/ComposedModal-story.js @@ -139,15 +139,18 @@ storiesOf('ComposedModal', module) 'Using Header / Footer Props', () => { const { size, ...rest } = props.composedModal(); + const { hasScrollingContent, ...bodyProps } = props.modalBody(); return ( - -

+ +

Please see ModalWrapper for more examples and demo of the functionality.

- {props.modalBody().hasScrollingContent && scrollingContent} + {hasScrollingContent && scrollingContent}
@@ -169,17 +172,20 @@ storiesOf('ComposedModal', module) 'Using child nodes', () => { const { size, ...rest } = props.composedModal(); + const { hasScrollingContent, ...bodyProps } = props.modalBody(); return (

Testing

- +

Please see ModalWrapper for more examples and demo of the functionality.

- {props.modalBody().hasScrollingContent && scrollingContent} + {hasScrollingContent && scrollingContent}
@@ -228,6 +234,7 @@ storiesOf('ComposedModal', module) render() { const { open } = this.state; const { size, ...rest } = props.composedModal(); + const { hasScrollingContent, ...bodyProps } = props.modalBody(); return ( <>