Skip to content

Commit b2bda41

Browse files
HaNdTriXtimneutkens
authored andcommitted
Fix material-ui-next example (vercel#2348)
1 parent f14297d commit b2bda41

File tree

1 file changed

+5
-9
lines changed
  • examples/with-material-ui-next/pages

1 file changed

+5
-9
lines changed

examples/with-material-ui-next/pages/index.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ const styles = {
1717
}
1818

1919
class Index extends Component {
20-
constructor (props) {
21-
super(props)
22-
23-
this.state = {
24-
open: false
25-
}
26-
}
20+
state = {
21+
open: false
22+
};
2723

2824
handleRequestClose = () => {
2925
this.setState({
@@ -47,12 +43,12 @@ class Index extends Component {
4743
<DialogContentText>1-2-3-4-5</DialogContentText>
4844
</DialogContent>
4945
<DialogActions>
50-
<Button primary onClick={this.handleRequestClose}>OK</Button>
46+
<Button color='primary' onClick={this.handleRequestClose}>OK</Button>
5147
</DialogActions>
5248
</Dialog>
5349
<Typography type='display1' gutterBottom>Material-UI</Typography>
5450
<Typography type='subheading' gutterBottom>example project</Typography>
55-
<Button raised accent onClick={this.handleClick}>
51+
<Button raised color='accent' onClick={this.handleClick}>
5652
Super Secret Password
5753
</Button>
5854
</div>

0 commit comments

Comments
 (0)