0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 21:02:43 +00:00

Adding new navitems and finishing the edit and share page

This commit is contained in:
Scott Tolksdorf
2016-05-09 16:54:32 -04:00
parent d5b8c60317
commit ed7decb42b
16 changed files with 350 additions and 204 deletions

View File

@@ -9,7 +9,7 @@ var PAGE_HEIGHT = 1056 + 30;
var BrewRenderer = React.createClass({
getDefaultProps: function() {
return {
brewText : ''
text : ''
};
},
getInitialState: function() {
@@ -68,7 +68,7 @@ var BrewRenderer = React.createClass({
},
renderPages : function(){
var pages = this.props.brewText.split('\\page');
var pages = this.props.text.split('\\page');
this.totalPages = pages.length;
return _.map(pages, (page, index)=>{