mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 08:32:41 +00:00
Cut out the renderPrivateBrews script
This commit is contained in:
@@ -44,15 +44,6 @@ const UserPage = createClass({
|
|||||||
|
|
||||||
render : function(){
|
render : function(){
|
||||||
const brews = this.getSortedBrews();
|
const brews = this.getSortedBrews();
|
||||||
const publishedBrews =
|
|
||||||
<h1>{this.props.username}’s brews</h1>
|
|
||||||
{this.renderBrews(brews.published)};
|
|
||||||
let privateBrews = '';
|
|
||||||
if(privateBrews && privateBrews.length) {
|
|
||||||
privateBrews =
|
|
||||||
<h1>{this.props.username}’s unpublished brews</h1>
|
|
||||||
{this.renderBrews(brews.private)};
|
|
||||||
}
|
|
||||||
|
|
||||||
return <div className='userPage page'>
|
return <div className='userPage page'>
|
||||||
<Navbar>
|
<Navbar>
|
||||||
@@ -64,11 +55,13 @@ const UserPage = createClass({
|
|||||||
|
|
||||||
<div className='content'>
|
<div className='content'>
|
||||||
<div className='phb'>
|
<div className='phb'>
|
||||||
<div className='published'>
|
<div>
|
||||||
{publishedBrews}
|
<h1>{this.props.username}'s brews</h1>
|
||||||
|
{this.renderBrews(brews.published)}
|
||||||
</div>
|
</div>
|
||||||
<div className='private'>
|
<div>
|
||||||
{privateBrews}
|
<h1>{this.props.username}'s unpublished brews</h1>
|
||||||
|
{this.renderBrews(brews.private)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
.phb{
|
.phb{
|
||||||
.noColumns();
|
.noColumns();
|
||||||
height : auto;
|
height : auto;
|
||||||
min-height : 279.4mm;
|
min-height : 279.4mm;
|
||||||
margin : 20px auto;
|
margin : 20px auto;
|
||||||
&::after{
|
&::after{
|
||||||
display : none;
|
display : none;
|
||||||
@@ -30,4 +30,4 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user