0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 14:22:52 +00:00

Shift renderUiItems to function

This commit is contained in:
G.Ambatte
2022-09-26 00:35:12 +13:00
parent be25e90009
commit ed5bef27e0
2 changed files with 16 additions and 14 deletions

View File

@@ -13,13 +13,15 @@ const UIPage = createClass({
getDefaultProps : function(){
return {
uiItems : <>
<h1>H1 Header</h1>
<h2>H2 Header</h2>
<h3>H3 Header</h3>
<h4>H4 Header</h4>
<p>This is some test text.</p>
</>
renderUiItems : ()=>{
return <>
<h1>H1 Header</h1>
<h2>H2 Header</h2>
<h3>H3 Header</h3>
<h4>H4 Header</h4>
<p>This is some test text.</p>
</>;
}
};
},
@@ -37,7 +39,7 @@ const UIPage = createClass({
</Navbar>
<div className='content'>
{this.props.uiItems}
{this.props.renderUiItems()}
</div>
</div>;
}