Add learn button to navbar

This commit is contained in:
Berkeley Martinez
2015-11-19 22:46:36 -08:00
parent 6f62868f44
commit dfa5acde60
5 changed files with 61 additions and 15 deletions
-14
View File
@@ -1,14 +0,0 @@
import React from 'react';
export default class extends React.Component {
constructor(props) {
super(props);
}
static displayName = 'NotFound'
static propTypes = {}
componentDidMount() {
}
render() {
return null;
}
}
+22
View File
@@ -0,0 +1,22 @@
import React, { PropTypes } from 'react';
const win = typeof window !== 'undefined' ? window : {};
function goToServer(path) {
win.location = '/' + path;
}
export default React.createClass({
displayName: 'NotFound',
propTypes: {
params: PropTypes.object
},
componentWillMount() {
goToServer(this.props.params.splat);
},
componentDidMount() {
},
render() {
return <span></span>;
}
});