Skip to content

Commit

Permalink
docs: Improve the DrawerSection example (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
gawrysiak authored and ferrannp committed May 16, 2018
1 parent 41ef933 commit c951521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DrawerSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ type Props = {
* <DrawerSection title="Some title">
* <DrawerItem
* label="First Item"
* active={this.state.active === 'First Item'}
* active={active === 'First Item'}
* onPress={() => { this.setState({ active: 'First Item' }); }}
* />
* <DrawerItem
* label="Second Item"
* active={this.state.active === 'Second Item'}
* active={active === 'Second Item'}
* onPress={() => { this.setState({ active: 'Second Item' }); }}
* />
* </DrawerSection>
Expand Down

0 comments on commit c951521

Please sign in to comment.