Skip to content

Commit

Permalink
Fix: Linting problem in modal example code (#13671)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored and youknowriad committed Mar 6, 2019
1 parent f3eacef commit f3a4d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const MyModal = withState( {
} )( ( { isOpen, setState } ) => (
<div>
<Button isDefault onClick={ () => setState( { isOpen: true } ) }>Open Modal</Button>
{ isOpen ?
{ isOpen && (
<Modal
title="This is my modal"
onRequestClose={ () => setState( { isOpen: false } ) }>
<Button isDefault onClick={ () => setState( { isOpen: false } ) }>
My custom close button
</Button>
</Modal>
: null }
) }
</div>
) );
```
Expand Down

0 comments on commit f3a4d2b

Please sign in to comment.