File tree 5 files changed +27
-8
lines changed
5 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Snackbar from 'material-ui/Snackbar';
3
3
4
4
let openSnackbarFn ;
5
5
6
- class Notifier extends React . PureComponent {
6
+ class Notifier extends React . Component {
7
7
state = {
8
8
open : false ,
9
9
message : '' ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "env" : {
3
+ "NODE_ENV" : " production"
4
+ },
5
+ "alias" : " notifier.builderbook.org" ,
6
+ "scale" : {
7
+ "sfo1" : {
8
+ "min" : 1 ,
9
+ "max" : 1
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change 6
6
"dev" : " next" ,
7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
- "lint" : " eslint components pages lib server"
9
+ "lint" : " eslint components pages lib server" ,
10
+ "now" : " now && now alias"
10
11
},
11
12
"dependencies" : {
12
13
"babel-cli" : " ^6.26.0" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Button from 'material-ui/Button';
5
5
import Notifier , { openSnackbar } from '../components/Notifier' ;
6
6
import withLayout from '../lib/withLayout' ;
7
7
8
- class Notify extends React . Component {
8
+ class Index extends React . Component {
9
9
showNotifier = ( event ) => {
10
10
event . preventDefault ( ) ;
11
11
@@ -27,7 +27,10 @@ class Notify extends React.Component {
27
27
< div style = { { padding : '10px 45px' } } >
28
28
< Head >
29
29
< title > Notifier component</ title >
30
- < meta name = "description" content = "description for indexing bots" />
30
+ < meta
31
+ name = "description"
32
+ content = "How to show informational messages using Material-UI in a React web app"
33
+ />
31
34
</ Head >
32
35
< br />
33
36
< Notifier />
@@ -59,4 +62,4 @@ class Notify extends React.Component {
59
62
}
60
63
}
61
64
62
- export default withLayout ( Notify ) ;
65
+ export default withLayout ( Index ) ;
Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ import TextField from 'material-ui/TextField';
4
4
import Button from 'material-ui/Button' ;
5
5
import withLayout from '../lib/withLayout' ;
6
6
7
- class Notify extends React . Component {
7
+ class Index extends React . Component {
8
8
render ( ) {
9
9
return (
10
10
< div style = { { padding : '10px 45px' } } >
11
11
< Head >
12
12
< title > Notifier component</ title >
13
- < meta name = "description" content = "description for indexing bots" />
13
+ < meta
14
+ name = "description"
15
+ content = "How to show informational messages using Material-UI in a React web app"
16
+ />
14
17
</ Head >
15
18
< form >
16
19
< p > What is 2+2? </ p >
@@ -37,4 +40,4 @@ class Notify extends React.Component {
37
40
}
38
41
}
39
42
40
- export default withLayout ( Notify ) ;
43
+ export default withLayout ( Index ) ;
You can’t perform that action at this time.
0 commit comments