0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 11:22:39 +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 className='pages' ref='pages'>
{/* Apply CSS from Style tab */}
{/* Apply CSS and render pages from Markdown tab */}
{this.state.isMounted
? this.renderStyle()
: null}
{/* Render pages from Markdown tab */}
{this.state.isMounted
? this.renderPages()
?
<>
{this.renderStyle()}
{this.renderPages()}
</>
: null}
</div>
</div>