2015-11-20 06:45:31 +00:00
|
|
|
import React, { PropTypes } from 'react';
|
|
|
|
|
|
|
|
const win = typeof window !== 'undefined' ? window : {};
|
|
|
|
|
|
|
|
function goToServer(path) {
|
|
|
|
win.location = '/' + path;
|
|
|
|
}
|
|
|
|
|
2016-01-27 19:34:44 +00:00
|
|
|
export default class extends React.Component {
|
|
|
|
static displayName = 'NotFound';
|
|
|
|
|
|
|
|
static propTypes = {
|
2015-11-20 06:45:31 +00:00
|
|
|
params: PropTypes.object
|
2016-01-27 19:34:44 +00:00
|
|
|
};
|
|
|
|
|
2015-11-20 06:45:31 +00:00
|
|
|
componentWillMount() {
|
|
|
|
goToServer(this.props.params.splat);
|
2016-01-27 19:34:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-20 06:45:31 +00:00
|
|
|
componentDidMount() {
|
2016-01-27 19:34:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-20 06:45:31 +00:00
|
|
|
render() {
|
|
|
|
return <span></span>;
|
|
|
|
}
|
2016-01-27 19:34:44 +00:00
|
|
|
}
|