fix jsx
This commit is contained in:
parent
5ed51109f6
commit
28216e998b
1 changed files with 18 additions and 17 deletions
|
@ -19,7 +19,7 @@ class ChannelTile extends React.PureComponent {
|
|||
|
||||
render() {
|
||||
const { claim, navigate, isResolvingUri, totalItems, uri } = this.props;
|
||||
|
||||
|
||||
let onClick = () => navigate("/show", { uri });
|
||||
|
||||
return (
|
||||
|
@ -28,22 +28,23 @@ class ChannelTile extends React.PureComponent {
|
|||
<div className={"card__inner file-tile__row"}>
|
||||
<CardMedia title={name} thumbnail={null} />
|
||||
<div className="file-tile__content">
|
||||
<div className="card__title-primary">
|
||||
<h3>
|
||||
<TruncatedText lines={1}>{uri}</TruncatedText>
|
||||
</h3>
|
||||
</div>
|
||||
<div className="card__content card__subtext">
|
||||
{isResolvingUri &&
|
||||
<BusyMessage message={__("Resolving channel")} />}
|
||||
{totalItems > 0 &&
|
||||
<span>
|
||||
This is a channel with {totalItems}{" "}
|
||||
{totalItems === 1 ? " item" : " items"} inside of it.
|
||||
</span>}
|
||||
{!isResolvingUri &&
|
||||
!totalItems &&
|
||||
<span className="empty">This is an empty channel.</span>}
|
||||
<div className="card__title-primary">
|
||||
<h3>
|
||||
<TruncatedText lines={1}>{claim.name}</TruncatedText>
|
||||
</h3>
|
||||
</div>
|
||||
<div className="card__content card__subtext">
|
||||
{isResolvingUri &&
|
||||
<BusyMessage message={__("Resolving channel")} />}
|
||||
{totalItems > 0 &&
|
||||
<span>
|
||||
This is a channel with {totalItems}{" "}
|
||||
{totalItems === 1 ? " item" : " items"} inside of it.
|
||||
</span>}
|
||||
{!isResolvingUri &&
|
||||
!totalItems &&
|
||||
<span className="empty">This is an empty channel.</span>}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue