0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 18:42:40 +00:00

Modify how data is passed to UIPage

This commit is contained in:
G.Ambatte
2022-10-03 20:27:34 +13:00
parent 93918bc26c
commit 1d8781da90
2 changed files with 12 additions and 28 deletions

View File

@@ -13,20 +13,6 @@ const Account = require('../../../navbar/account.navitem.jsx');
const UIPage = createClass({
displayName : 'UIPage',
getDefaultProps : function(){
return {
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>
</>;
}
};
},
render : function(){
return <div className='uiPage sitePage'>
<Navbar>
@@ -43,11 +29,7 @@ const UIPage = createClass({
</Navbar>
<div className='content'>
{this.props.renderUiItems().map((item, index)=>{
return <div className='dataGroup' key={index}>
{item}
</div>;
})}
{this.props.children}
</div>
</div>;
}