Rejig gather join buttons

This commit is contained in:
Chris Blanchard 2015-10-20 23:49:21 +01:00
parent 67cd9ef46e
commit 94708b9d0d

View file

@ -663,6 +663,7 @@ var Gather = React.createClass({
);
}
if (gather.gatherers.length > 0) {
return (
<div>
<div className="panel panel-primary add-bottom">
@ -678,6 +679,19 @@ var Gather = React.createClass({
{previousGather}
</div>
);
} else {
return (
<div>
<div className="panel panel-primary add-bottom">
<div className="panel-heading">Current Gather</div>
<div className="panel-body text-center">Be the first to join the gather
</div>
</div>
<Gatherers gather={gather} user={user} thisGatherer={thisGatherer} />
</div>
);
}
}
});