mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 03:12:40 +00:00
Hide Private brew <div> if UserPage is not for logged in User
This commit is contained in:
@@ -145,10 +145,12 @@ const UserPage = createClass({
|
|||||||
<h1>{this.getUsernameWithS()} brews</h1>
|
<h1>{this.getUsernameWithS()} brews</h1>
|
||||||
{this.renderBrews(brews.published)}
|
{this.renderBrews(brews.published)}
|
||||||
</div>
|
</div>
|
||||||
<div className='unpublished'>
|
{this.props?.username == global.account?.username &&
|
||||||
<h1>{this.getUsernameWithS()} unpublished brews</h1>
|
<div className='unpublished'>
|
||||||
{this.renderBrews(brews.private)}
|
<h1>{this.getUsernameWithS()} unpublished brews</h1>
|
||||||
</div>
|
{this.renderBrews(brews.private)}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
|
|||||||
Reference in New Issue
Block a user