File tree 1 file changed +5
-9
lines changed
examples/with-material-ui-next/pages
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,9 @@ const styles = {
17
17
}
18
18
19
19
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
+ } ;
27
23
28
24
handleRequestClose = ( ) => {
29
25
this . setState ( {
@@ -47,12 +43,12 @@ class Index extends Component {
47
43
< DialogContentText > 1-2-3-4-5</ DialogContentText >
48
44
</ DialogContent >
49
45
< DialogActions >
50
- < Button primary onClick = { this . handleRequestClose } > OK</ Button >
46
+ < Button color = ' primary' onClick = { this . handleRequestClose } > OK</ Button >
51
47
</ DialogActions >
52
48
</ Dialog >
53
49
< Typography type = 'display1' gutterBottom > Material-UI</ Typography >
54
50
< Typography type = 'subheading' gutterBottom > example project</ Typography >
55
- < Button raised accent onClick = { this . handleClick } >
51
+ < Button raised color = ' accent' onClick = { this . handleClick } >
56
52
Super Secret Password
57
53
</ Button >
58
54
</ div >
You can’t perform that action at this time.
0 commit comments