File tree Expand file tree Collapse file tree 3 files changed +46
-29
lines changed Expand file tree Collapse file tree 3 files changed +46
-29
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,16 @@ function mapDispatchToProps(dispatch) {
14
14
return bindActionCreators ( actionCreators , dispatch ) ;
15
15
}
16
16
17
- const Analytics = connect ( mapStateToProps , mapDispatchToProps ) ( ( ) =>
18
- < div className = "col-md-8" >
19
- < h1 > Analytics</ h1 >
20
- < hr />
21
- </ div >
22
- ) ;
17
+ @connect ( mapStateToProps , mapDispatchToProps )
18
+ class Analytics extends React . Component { // eslint-disable-line react/prefer-stateless-function
19
+ render ( ) {
20
+ return (
21
+ < div className = "col-md-8" >
22
+ < h1 > Analytics</ h1 >
23
+ < hr />
24
+ </ div >
25
+ ) ;
26
+ }
27
+ }
23
28
24
29
export default Analytics ;
Original file line number Diff line number Diff line change @@ -16,10 +16,15 @@ function mapDispatchToProps(dispatch) {
16
16
return bindActionCreators ( actionCreators , dispatch ) ;
17
17
}
18
18
19
- const NotFound = connect ( mapStateToProps , mapDispatchToProps ) ( ( ) =>
20
- < div className = "col-md-8" >
21
- < h1 > Not Found</ h1 >
22
- </ div >
23
- ) ;
19
+ @connect ( mapStateToProps , mapDispatchToProps )
20
+ class NotFound extends React . Component { // eslint-disable-line react/prefer-stateless-function
21
+ render ( ) {
22
+ return (
23
+ < div className = "col-md-8" >
24
+ < h1 > Not Found</ h1 >
25
+ </ div >
26
+ ) ;
27
+ }
28
+ }
24
29
25
30
export default NotFound ;
Original file line number Diff line number Diff line change @@ -10,22 +10,29 @@ import { Footer } from '../../components/Footer';
10
10
/* global styles for app */
11
11
import './styles/app.scss' ;
12
12
13
- export const App = ( { children } ) =>
14
- < MuiThemeProvider muiTheme = { getMuiTheme ( ) } >
15
- < section >
16
- < Header />
17
- < div
18
- className = "container"
19
- style = { { marginTop : 10 , paddingBottom : 250 } }
20
- >
21
- { children }
22
- </ div >
23
- < div >
24
- < Footer />
25
- </ div >
26
- </ section >
27
- </ MuiThemeProvider > ;
13
+ class App extends React . Component { // eslint-disable-line react/prefer-stateless-function
14
+ static propTypes = {
15
+ children : React . PropTypes . node ,
16
+ } ;
28
17
29
- App . propTypes = {
30
- children : React . PropTypes . node ,
31
- } ;
18
+ render ( ) {
19
+ return (
20
+ < MuiThemeProvider muiTheme = { getMuiTheme ( ) } >
21
+ < section >
22
+ < Header />
23
+ < div
24
+ className = "container"
25
+ style = { { marginTop : 10 , paddingBottom : 250 } }
26
+ >
27
+ { this . props . children }
28
+ </ div >
29
+ < div >
30
+ < Footer />
31
+ </ div >
32
+ </ section >
33
+ </ MuiThemeProvider >
34
+ ) ;
35
+ }
36
+ }
37
+
38
+ export { App } ;
You can’t perform that action at this time.
0 commit comments