remove pointless nulls
This commit is contained in:
parent
d53c3d4db6
commit
c4827c853d
2 changed files with 29 additions and 30 deletions
|
@ -97,8 +97,9 @@ class FileCard extends React.PureComponent {
|
|||
<TruncatedText lines={2}>{description}</TruncatedText>
|
||||
</div>
|
||||
</Link>
|
||||
{obscureNsfw && this.state.hovered
|
||||
? <div className="card-overlay">
|
||||
{obscureNsfw &&
|
||||
this.state.hovered &&
|
||||
<div className="card-overlay">
|
||||
<p>
|
||||
{__(
|
||||
"This content is Not Safe For Work. To view adult content, please change your"
|
||||
|
@ -110,8 +111,7 @@ class FileCard extends React.PureComponent {
|
|||
label={__("Settings")}
|
||||
/>.
|
||||
</p>
|
||||
</div>
|
||||
: null}
|
||||
</div>}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
@ -124,8 +124,8 @@ class FileTile extends React.PureComponent {
|
|||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
{this.state.showNsfwHelp
|
||||
? <div className="card-overlay">
|
||||
{this.state.showNsfwHelp &&
|
||||
<div className="card-overlay">
|
||||
<p>
|
||||
{__(
|
||||
"This content is Not Safe For Work. To view adult content, please change your"
|
||||
|
@ -137,8 +137,7 @@ class FileTile extends React.PureComponent {
|
|||
label={__("Settings")}
|
||||
/>.
|
||||
</p>
|
||||
</div>
|
||||
: null}
|
||||
</div>}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue