Skip to content

Commit

Permalink
refactor: put banned message into a constant and add a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
justgigio committed Jul 27, 2021
1 parent 43420df commit 6665d6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Network extends React.Component {
const { synced_percent, general_percent } = this.getSyncProgressPercent(sync_data);
const sync_state_description = SyncStatesDescription[sync_data.state] || SyncStatesDescription[SyncStates.UNKNOWN];

const entrypoints = peer.entrypoints || [];
const entrypoints = conn.entrypoints || [];

return (
<div key={peer} style={{marginBottom: "30px"}} className={"card bg-light border-success"}>
Expand Down
6 changes: 4 additions & 2 deletions src/components/token/TokenMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TokenMarkers = (props) => {
<button className="info-hover-wrapper btn btn-link pl-2">
<i className="fa fa-check-circle fa-lg text-info" title="Verified"></i>
<span className="subtitle info-hover-popover">
This is a verified token. <a href="http://hathor.network" >Learn more.</a>
This is a verified token. <a href="https://hathor.network" >Learn more.</a>
</span>
</button>
)
Expand All @@ -28,11 +28,13 @@ const TokenMarkers = (props) => {
return null;
}

const bannedMessage = ''; // TODO: this message is being disscussed here: https://github.com/HathorNetwork/hathor-explorer/issues/92

return (
<button className="info-hover-wrapper btn btn-link pl-2">
<i className="fa fa-exclamation-triangle fa-lg text-danger" title="Banned"></i>
<span className="subtitle info-hover-popover">
This token was banned and should not be trusted. <a href="http://hathor.network" >Learn more.</a>
{bannedMessage}
</span>
</button>
)
Expand Down

0 comments on commit 6665d6f

Please sign in to comment.