saving udates, not missing much i guess

This commit is contained in:
jenzur
2019-07-14 02:28:16 +02:00
parent 9232830451
commit 3730230925
14 changed files with 537 additions and 134 deletions
+6 -4
View File
@@ -72,7 +72,7 @@ class Maps extends React.Component {
loadPlayers = async () => {
const mapname = this.props.match.params.mapname;
const stage = this.props.match.params.stage;
const mapTimes = await Facade.getMapTimesFromCache(mapname, stage, this.state.mapTimes.length + 1);
const mapTimes = await Facade.getMapTimesFromCache(mapname, stage, this.state.mapTimes.length);
this.setState({ mapTimes });
this.setState({ breakload: true })
}
@@ -80,7 +80,6 @@ class Maps extends React.Component {
render() {
return (
<React.Fragment>
<div className="alert alert-primary" >
<div id='containerMaps'>
<div>
@@ -99,8 +98,6 @@ class Maps extends React.Component {
<div style={{
position: 'absolute', left: '50%', top: '30%'
}}>
<br />
<br />
<h2> <strong className="col-lg-1 col-centered" />{this.state.mapName}<br /> </h2>
<br />
<br />
@@ -115,6 +112,11 @@ class Maps extends React.Component {
<strong className="col-lg-1 col-centered" /> Position: {e.position}<br />
<strong className="col-lg-1 col-centered" /> Mappoints: {e.mapPoint}<br />
<strong className="col-lg-1 col-centered" /> Time: 0{e.mapTimeMinutes}:{e.mapTimeSeconds}<br />
{Object.keys(e.badgesUrls).map(badges => (
<div key={e.badgesUrls[badges]}>
<img src={e.badgesUrls[badges]} alt="" /> <br />
</div>
))}
<br />
<br />
</div>