File tree 2 files changed +4
-6
lines changed 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { connect } from 'react-redux' ;
3
- import SvgImage from 'app/components/elements/SvgImage' ;
4
3
import { Link } from 'react-router' ;
5
4
import Icon from 'app/components/elements/Icon' ;
6
5
import * as appActions from 'app/redux/AppReducer' ;
7
6
8
7
class NotFound extends React . Component {
9
8
componentWillMount ( ) {
10
- this . props . setRouteTag ( ) ;
9
+ this . props . setRouteTag && this . props . setRouteTag ( ) ;
11
10
}
12
11
render ( ) {
13
12
return (
@@ -67,14 +66,13 @@ class NotFound extends React.Component {
67
66
module . exports = {
68
67
path : '*' ,
69
68
component : connect (
70
- ( state , ownProps ) => {
71
- return { } ;
72
- } ,
69
+ ( state , ownProps ) => ( { } ) ,
73
70
dispatch => {
74
71
return {
75
72
setRouteTag : ( ) =>
76
73
dispatch ( appActions . setRouteTag ( { routeTag : 'not_found' } ) ) ,
77
74
} ;
78
75
}
79
76
) ( NotFound ) ,
77
+ serverRenderComponent : NotFound ,
80
78
} ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { all } from 'redux-saga/effects';
27
27
import { syncHistoryWithStore } from 'react-router-redux' ;
28
28
import rootReducer from 'app/redux/RootReducer' ;
29
29
import rootSaga from 'shared/RootSaga' ;
30
- import { component as NotFound } from 'app/components/pages/NotFound' ;
30
+ import { serverRenderComponent as NotFound } from 'app/components/pages/NotFound' ;
31
31
import extractMeta from 'app/utils/ExtractMeta' ;
32
32
import Translator from 'app/Translator' ;
33
33
import { routeRegex } from 'app/ResolveRoute' ;
You can’t perform that action at this time.
0 commit comments