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:
@@ -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)=>{
|
||||
|
||||
Reference in New Issue
Block a user