0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 14:02:41 +00:00

Combine renderStyle and renderPages logic

This commit is contained in:
G.Ambatte
2021-07-29 19:23:27 +12:00
parent 41e1ed7bd1
commit cac5aa2475

View File

@@ -193,14 +193,13 @@ const BrewRenderer = createClass({
</div> </div>
<div className='pages' ref='pages'> <div className='pages' ref='pages'>
{/* Apply CSS from Style tab */} {/* Apply CSS and render pages from Markdown tab */}
{this.state.isMounted {this.state.isMounted
? this.renderStyle() ?
: null} <>
{this.renderStyle()}
{/* Render pages from Markdown tab */} {this.renderPages()}
{this.state.isMounted </>
? this.renderPages()
: null} : null}
</div> </div>
</div> </div>