Move location of archived gathers

This commit is contained in:
Chris Blanchard 2015-10-02 19:39:09 +01:00
parent e5df60582c
commit 540110f060
2 changed files with 1 additions and 14 deletions

View file

@ -598,20 +598,9 @@ var MapVoting = React.createClass({
})
var Gather = React.createClass({
thisGatherer() {
let gather = this.props.gather;
let user = this.props.user;
if (gather && user && gather.gatherers.length) {
return gather.gatherers
.filter(gatherer => gatherer.id === user.id)
.pop() || null;
}
return null;
},
render() {
let gather = this.props.gather;
let thisGatherer = this.thisGatherer();
let thisGatherer = this.props.thisGatherer;
let servers = this.props.servers;
let maps = this.props.maps;
let user = this.props.user;

View file

@ -143,8 +143,6 @@ var App = React.createClass({
maps={this.props.maps}
servers={this.props.servers}
previousGather={this.props.previousGather}/>
</div>
<div className="col-md-6 col-md-offset-6" id="archived-gathers">
<ArchivedGathers archive={this.props.archive}
maps={this.props.maps}
servers={this.props.servers} />