mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 15:21:56 +00:00
Move location of archived gathers
This commit is contained in:
parent
e5df60582c
commit
540110f060
2 changed files with 1 additions and 14 deletions
|
@ -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;
|
||||
|
|
|
@ -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} />
|
||||
|
|
Loading…
Reference in a new issue