Skip to content

Commit

Permalink
Fix material-ui-next example (vercel#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX authored and timneutkens committed Jun 23, 2017
1 parent f14297d commit b2bda41
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions examples/with-material-ui-next/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ const styles = {
}

class Index extends Component {
constructor (props) {
super(props)

this.state = {
open: false
}
}
state = {
open: false
};

handleRequestClose = () => {
this.setState({
Expand All @@ -47,12 +43,12 @@ class Index extends Component {
<DialogContentText>1-2-3-4-5</DialogContentText>
</DialogContent>
<DialogActions>
<Button primary onClick={this.handleRequestClose}>OK</Button>
<Button color='primary' onClick={this.handleRequestClose}>OK</Button>
</DialogActions>
</Dialog>
<Typography type='display1' gutterBottom>Material-UI</Typography>
<Typography type='subheading' gutterBottom>example project</Typography>
<Button raised accent onClick={this.handleClick}>
<Button raised color='accent' onClick={this.handleClick}>
Super Secret Password
</Button>
</div>
Expand Down

0 comments on commit b2bda41

Please sign in to comment.