2015-11-20 06:45:31 +00:00
|
|
|
import React, { PropTypes } from 'react';
|
2016-06-18 05:20:20 +00:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { hardGoTo } from '../../redux/actions';
|
2015-11-20 06:45:31 +00:00
|
|
|
|
2016-06-18 05:20:20 +00:00
|
|
|
export class NotFound extends React.Component {
|
2016-01-27 19:34:44 +00:00
|
|
|
static displayName = 'NotFound';
|
|
|
|
|
|
|
|
static propTypes = {
|
2016-06-18 05:20:20 +00:00
|
|
|
location: PropTypes.object,
|
|
|
|
hardGoTo: PropTypes.func
|
2016-01-27 19:34:44 +00:00
|
|
|
};
|
|
|
|
|
2015-11-20 06:45:31 +00:00
|
|
|
componentWillMount() {
|
2016-06-18 05:20:20 +00:00
|
|
|
this.props.hardGoTo(this.props.location.pathname);
|
2016-01-27 19:34:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-20 06:45:31 +00:00
|
|
|
render() {
|
2016-08-03 17:25:31 +00:00
|
|
|
return <span />;
|
2015-11-20 06:45:31 +00:00
|
|
|
}
|
2016-01-27 19:34:44 +00:00
|
|
|
}
|
2016-06-18 05:20:20 +00:00
|
|
|
|
|
|
|
export default connect(null, { hardGoTo })(NotFound);
|