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