mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 08:52:38 +00:00
lint
This commit is contained in:
@@ -20,17 +20,17 @@ const PAGE_HEIGHT = 1056;
|
|||||||
const PPR_THRESHOLD = 50;
|
const PPR_THRESHOLD = 50;
|
||||||
|
|
||||||
const BrewPage = createClass({
|
const BrewPage = createClass({
|
||||||
displayName : `BrewPage`,
|
displayName : `BrewPage`,
|
||||||
getDefaultProps : function() {
|
getDefaultProps : function() {
|
||||||
return {
|
return {
|
||||||
contents : '',
|
contents : '',
|
||||||
index : 0
|
index : 0
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
render : function() {
|
render : function() {
|
||||||
return <div className='page' id={`p${this.props.index + 1}`} >
|
return <div className='page' id={`p${this.props.index + 1}`} >
|
||||||
<div className='columnWrapper' dangerouslySetInnerHTML={{ __html: this.props.contents }} />
|
<div className='columnWrapper' dangerouslySetInnerHTML={{ __html: this.props.contents }} />
|
||||||
</div>
|
</div>;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -70,8 +70,8 @@ const BrewRenderer = createClass({
|
|||||||
</head><body style='overflow: hidden'><div></div></body></html>`
|
</head><body style='overflow: hidden'><div></div></body></html>`
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
height : 0,
|
height : 0,
|
||||||
lastRender : <div></div>,
|
lastRender : <div></div>,
|
||||||
renderedPages : [],
|
renderedPages : [],
|
||||||
|
|
||||||
componentWillUnmount : function() {
|
componentWillUnmount : function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user