mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 15:42:39 +00:00
change name of render method to be more discriptive
"UiItems" is not descriptive enough for a render method because most anything that is rendered is part of the UI. This could be left as just `render()`, but `renderAccountPage()` provides best context of what is happening.
This commit is contained in:
@@ -39,7 +39,7 @@ const AccountPage = (props)=>{
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderUiItems = ()=>{
|
const renderAccountPage = ()=>{
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className='dataGroup'>
|
<div className='dataGroup'>
|
||||||
@@ -75,7 +75,7 @@ const AccountPage = (props)=>{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<UIPage brew={props.brew}>
|
<UIPage brew={props.brew}>
|
||||||
{renderUiItems()}
|
{renderAccountPage()}
|
||||||
</UIPage>);
|
</UIPage>);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user