0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 02:02:43 +00:00
Files
homebrewery/client/homebrew/sharePage/sharePage.jsx

38 lines
622 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,
}
};
},
render : function(){
return(
<div className='sharePage'>
<Statusbar
shareId={this.props.entry.shareId}
/>
<PHB text={this.props.entry.text} />
</div>
);
}
});
module.exports = SharePage;