0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 04:32:38 +00:00

Merge pull request #1531 from G-Ambatte/hidePrivateBrews

Hide Private brew `<div>` if UserPage is not for logged in User
This commit is contained in:
Trevor Buckner
2021-08-09 00:56:30 -04:00
committed by GitHub

View File

@@ -143,13 +143,15 @@ const UserPage = createClass({
<div className='phb'>
{this.renderSortOptions()}
<div className='published'>
<h1>{this.getUsernameWithS()} brews</h1>
<h1>{this.getUsernameWithS()} published brews</h1>
{this.renderBrews(brews.published)}
</div>
<div className='unpublished'>
<h1>{this.getUsernameWithS()} unpublished brews</h1>
{this.renderBrews(brews.private)}
</div>
{this.props.username == global.account?.username &&
<div className='unpublished'>
<h1>{this.getUsernameWithS()} unpublished brews</h1>
{this.renderBrews(brews.private)}
</div>
}
</div>
</div>
</div>;