File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { connect } from 'react-redux' ;
3- import SvgImage from 'app/components/elements/SvgImage' ;
43import { Link } from 'react-router' ;
54import Icon from 'app/components/elements/Icon' ;
65import * as appActions from 'app/redux/AppReducer' ;
76
87class NotFound extends React . Component {
98 componentWillMount ( ) {
10- this . props . setRouteTag ( ) ;
9+ this . props . setRouteTag && this . props . setRouteTag ( ) ;
1110 }
1211 render ( ) {
1312 return (
@@ -67,14 +66,13 @@ class NotFound extends React.Component {
6766module . exports = {
6867 path : '*' ,
6968 component : connect (
70- ( state , ownProps ) => {
71- return { } ;
72- } ,
69+ ( state , ownProps ) => ( { } ) ,
7370 dispatch => {
7471 return {
7572 setRouteTag : ( ) =>
7673 dispatch ( appActions . setRouteTag ( { routeTag : 'not_found' } ) ) ,
7774 } ;
7875 }
7976 ) ( NotFound ) ,
77+ serverRenderComponent : NotFound ,
8078} ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { all } from 'redux-saga/effects';
2727import { syncHistoryWithStore } from 'react-router-redux' ;
2828import rootReducer from 'app/redux/RootReducer' ;
2929import rootSaga from 'shared/RootSaga' ;
30- import { component as NotFound } from 'app/components/pages/NotFound' ;
30+ import { serverRenderComponent as NotFound } from 'app/components/pages/NotFound' ;
3131import extractMeta from 'app/utils/ExtractMeta' ;
3232import Translator from 'app/Translator' ;
3333import { routeRegex } from 'app/ResolveRoute' ;
You can’t perform that action at this time.
0 commit comments