0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 17:52:38 +00:00
Files
homebrewery/client/homebrew/sharePage/sharePage.jsx
2016-01-11 17:00:21 -05:00

39 lines
676 B
JavaScript

var React = require('react');
var _ = require('lodash');
var cx = require('classnames');
var Statusbar = require('../statusbar/statusbar.jsx');
var PHB = require('../phb/phb.jsx');
var SharePage = React.createClass({
getDefaultProps: function() {
return {
id : null,
entry : {
text : "",
shareId : null,
editId : null,
createdAt : null,
updatedAt : null,
views : 0
}
};
},
render : function(){
return(
<div className='sharePage'>
<Statusbar
lastUpdated={this.props.entry.updatedAt}
views={this.props.entry.views}
/>
<PHB text={this.props.entry.text} />
</div>
);
}
});
module.exports = SharePage;