2015-06-17 21:04:28 -07:00
|
|
|
import React, { PropTypes } from 'react';
|
2015-07-24 17:52:07 -07:00
|
|
|
import { contain } from 'thundercats-react';
|
2015-07-04 08:16:42 -07:00
|
|
|
import { Row } from 'react-bootstrap';
|
2015-06-17 21:04:28 -07:00
|
|
|
|
2015-07-03 17:46:58 -07:00
|
|
|
import { Nav } from './components/Nav';
|
|
|
|
import { Footer } from './components/Footer';
|
2015-06-17 21:04:28 -07:00
|
|
|
|
2015-07-24 17:52:07 -07:00
|
|
|
export default contain(
|
|
|
|
{
|
|
|
|
store: 'appStore',
|
|
|
|
fetchAction: 'appActions.getUser',
|
|
|
|
getPayload(props) {
|
|
|
|
return {
|
|
|
|
isPrimed: !!props.username
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
React.createClass({
|
|
|
|
displayName: 'FreeCodeCamp',
|
2015-06-17 21:04:28 -07:00
|
|
|
|
2015-07-24 17:52:07 -07:00
|
|
|
propTypes: {
|
|
|
|
children: PropTypes.node
|
|
|
|
},
|
2015-06-17 21:04:28 -07:00
|
|
|
|
2015-07-24 17:52:07 -07:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Nav />
|
|
|
|
<Row>
|
|
|
|
{ this.props.children }
|
|
|
|
</Row>
|
|
|
|
<Footer />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
);
|