| |
@@ -12,41 +12,51 @@
|
| |
return (
|
| |
<div className="UserContact">
|
| |
<ul className="fa-ul">
|
| |
- <li>
|
| |
- <i className="fa fa-li fa-map-marker" aria-hidden="true"></i>
|
| |
- <span className="ml-2">
|
| |
+ { this.props.hub.config.country &&
|
| |
+ <li>
|
| |
+ <i className="fa fa-li fa-map-marker" aria-hidden="true"></i>
|
| |
+ <span className="ml-2">
|
| |
{this.props.hub.config.country}
|
| |
</span>
|
| |
- </li>
|
| |
- <li>
|
| |
- <i className="fa fa-li fa-clock-o" aria-hidden="true"></i>
|
| |
- <span className="ml-2 mr-1">Current Time:</span>
|
| |
- <CurrentTime offset={this.props.hub.config.timezone_offset} />
|
| |
- </li>
|
| |
- <li>
|
| |
- <i className="fa fa-li fa-envelope-o" aria-hidden="true"></i>
|
| |
- <span className="ml-2">
|
| |
+ </li>
|
| |
+ }
|
| |
+ { this.props.hub.config.timezone_offset &&
|
| |
+ <li>
|
| |
+ <i className="fa fa-li fa-clock-o" aria-hidden="true"></i>
|
| |
+ <span className="ml-2 mr-1">Current Time:</span>
|
| |
+ <CurrentTime offset={this.props.hub.config.timezone_offset}/>
|
| |
+ </li>
|
| |
+ }
|
| |
+ { this.props.hub.config.email &&
|
| |
+ <li>
|
| |
+ <i className="fa fa-li fa-envelope-o" aria-hidden="true"></i>
|
| |
+ <span className="ml-2">
|
| |
{this.props.hub.config.email}
|
| |
</span>
|
| |
- </li>
|
| |
- <li>
|
| |
- <i className="fa fa-li fa-comment-o" aria-hidden="true"></i>
|
| |
- <span className="ml-2">
|
| |
+ </li>
|
| |
+ }
|
| |
+ { this.props.hub.config.chat_nickname &&
|
| |
+ <li>
|
| |
+ <i className="fa fa-li fa-comment-o" aria-hidden="true"></i>
|
| |
+ <span className="ml-2">
|
| |
{this.props.hub.config.chat_nickname}
|
| |
</span>
|
| |
- </li>
|
| |
+ </li>
|
| |
+ }
|
| |
</ul>
|
| |
- <div className="text-center">
|
| |
- <i className="fa fa-certificate" aria-hidden="true"></i>
|
| |
- <span className="ml-2 mr-1">
|
| |
+ { this.props.hub.config.creation_date &&
|
| |
+ <div className="text-center">
|
| |
+ <i className="fa fa-certificate" aria-hidden="true"></i>
|
| |
+ <span className="ml-2 mr-1">
|
| |
Member Since
|
| |
</span>
|
| |
- <FormattedDate
|
| |
- value={Date.parse(this.props.hub.config.creation_date)}
|
| |
- month="short"
|
| |
- year="numeric"
|
| |
+ <FormattedDate
|
| |
+ value={Date.parse(this.props.hub.config.creation_date)}
|
| |
+ month="short"
|
| |
+ year="numeric"
|
| |
/>
|
| |
- </div>
|
| |
+ </div>
|
| |
+ }
|
| |
</div>
|
| |
);
|
| |
}
|
| |
Closes #472