Skip to content

Commit

Permalink
Code improved
Browse files Browse the repository at this point in the history
click event function renamed properly
  • Loading branch information
kireerik committed Nov 15, 2017
1 parent bee0db8 commit 864c421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Main extends Component {
open: false
})

handleTouchTap = () => this.setState({
handleClick = () => this.setState({
open: true
})

Expand All @@ -47,7 +47,7 @@ class Main extends Component {
<Div>
<h1>Material-UI</h1>
<h2>example project</h2>
<RaisedButton label="Super Secret Password" secondary={true} onClick={this.handleTouchTap} />
<RaisedButton label="Super Secret Password" secondary={true} onClick={this.handleClick} />

<Dialog open={this.state.open} title="Super Secret Password" actions={
<FlatButton label="Ok" primary={true} onClick={this.handleRequestClose} />
Expand Down

0 comments on commit 864c421

Please sign in to comment.