Skip to content

Commit

Permalink
docs(Modal): update type
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 16, 2021
1 parent 317d382 commit b8510c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/Modal/Modal-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const props = {
return {
passiveModal: boolean(
'Without footer (passiveModal)',
false || numberOfButtons === 0
false || numberOfButtons === '0'
),
...secondaryButtons(),
};
Expand Down Expand Up @@ -175,7 +175,7 @@ export const Playground = () => {
const { passiveModal, ...footerProps } = props.modalFooter(numberOfButtons);
return (
<Modal
passiveModal={numberOfButtons === 0 || passiveModal}
passiveModal={numberOfButtons === '0' || passiveModal}
size={size || undefined}
hasScrollingContent={hasScrollingContent}
aria-label={hasScrollingContent ? 'Modal content' : undefined}
Expand Down

0 comments on commit b8510c2

Please sign in to comment.