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