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 gziolo committed Feb 5, 2019
1 parent a25a2b3 commit 1d829dd
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 1d829dd

Please sign in to comment.