0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 08:52:38 +00:00
This commit is contained in:
Trevor Buckner
2023-11-24 01:36:04 -05:00
parent ede731e3a5
commit 045fbbe158

View File

@@ -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() {