From caf80870357bcee08b02b0722d42ca59f8f6daaa Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 18 Dec 2019 12:49:03 -0600 Subject: [PATCH] chore(react): update composed modal story (#4904) --- .../ComposedModal/ComposedModal-story.js | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) 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 ( <>