|
|
@ -128,6 +128,11 @@ class GameMap extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shorten(s) {
|
|
|
|
|
|
|
|
return s.slice(0, 6) + '...' + s.slice(-4)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
(this.props.bombSupply !== prevProps.bombSupply) ||
|
|
|
|
(this.props.bombSupply !== prevProps.bombSupply) ||
|
|
|
@ -158,8 +163,15 @@ class GameMap extends React.Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="killLeader">
|
|
|
|
<div id="killLeader">
|
|
|
|
<img src={Boomer} width="50px" />
|
|
|
|
<img src={Boomer} width="50px" />
|
|
|
|
<p>Kill Leader: {this.props.killLeader}</p>
|
|
|
|
<p className="nopad">
|
|
|
|
<p>{this.props.killLeaderCount} kills</p>
|
|
|
|
Kill Leader:<br />
|
|
|
|
|
|
|
|
{this.props.killLeaderCount} kills
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p className="nopad">
|
|
|
|
|
|
|
|
<a href="https://etherscan.io/address/${this.props.killLeader}" target="_blank">
|
|
|
|
|
|
|
|
{this.shorten(this.props.killLeader)}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="map">
|
|
|
|
<div className="map">
|
|
|
|
<img src={Map} />
|
|
|
|
<img src={Map} />
|
|
|
@ -345,6 +357,7 @@ function Section3() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log(sendBombsWrite.error?.message);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<section className="section" id="mintSection">
|
|
|
|
<section className="section" id="mintSection">
|
|
|
|
{isConnected &&
|
|
|
|
{isConnected &&
|
|
|
|