0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-19 09:52:44 +00:00

Changed project structure to have the root page into main and subbed out the pages into their own folder

This commit is contained in:
Scott Tolksdorf
2016-05-06 15:59:18 -04:00
parent 34a93a6151
commit 62654102b8
43 changed files with 320 additions and 1448 deletions

View File

@@ -0,0 +1,41 @@
var React = require('react');
var _ = require('lodash');
var cx = require('classnames');
var Statusbar = require('../../statusbar/statusbar.jsx');
var PageContainer = require('../../pageContainer/pageContainer.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
sourceText={this.props.entry.text}
lastUpdated={this.props.entry.updatedAt}
views={this.props.entry.views}
printId={this.props.entry.shareId}
shareId={this.props.entry.shareId}
/>
<PageContainer text={this.props.entry.text} />
</div>
);
}
});
module.exports = SharePage;

View File

@@ -0,0 +1,3 @@
.sharePage{
}