mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 03:52:42 +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:
@@ -143,13 +143,15 @@ const UserPage = createClass({
|
|||||||
<div className='phb'>
|
<div className='phb'>
|
||||||
{this.renderSortOptions()}
|
{this.renderSortOptions()}
|
||||||
<div className='published'>
|
<div className='published'>
|
||||||
<h1>{this.getUsernameWithS()} brews</h1>
|
<h1>{this.getUsernameWithS()} published 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