diff --git a/app/javascripts/components/gather.js b/app/javascripts/components/gather.js index 877ef16..317118d 100644 --- a/app/javascripts/components/gather.js +++ b/app/javascripts/components/gather.js @@ -36,7 +36,7 @@ class SelectPlayerButton extends React.Component { onClick={this.selectPlayer} value={this.props.gatherer.id} className="btn btn-xs btn-primary team-label"> Select - ; + ; } return button; } @@ -87,7 +87,7 @@ class GatherTeams extends React.Component {
Marines -
+
@@ -95,7 +95,7 @@ class GatherTeams extends React.Component {
Aliens -
+
@@ -317,7 +317,7 @@ class CooloffButton extends React.Component { disabled="true" className="btn btn-success"> Leaver Cooloff ({this.timeRemaining()}) - + } } @@ -371,15 +371,15 @@ class GatherActions extends React.Component { {gather.pickingPattern.map((team, index) => { if (team === 'alien') { if (index <= pickIndex) { - return
  • + return
  • } else { - return
  • + return
  • } } else { if (index <= pickIndex) { - return
  • + return
  • } else { - return
  • + return
  • } } })} @@ -390,15 +390,15 @@ class GatherActions extends React.Component {
      -
    • +
    • {pickPatternIndicator}
      • -
      • +
      • -
      • +
      • {regatherButton}
      @@ -909,8 +909,8 @@ class GathererListItem extends React.Component { value={gatherer.user.id} onClick={this.bootGatherer}> Boot from Gather -   -   + ] @@ -977,7 +977,7 @@ class GathererListItem extends React.Component { ENSL Profile  - Observatory Profile @@ -1145,7 +1145,7 @@ class GatherVotingResults extends React.Component {
      Game Information -
      +
      diff --git a/app/javascripts/components/info.js b/app/javascripts/components/info.js index efeb4ad..22a3f71 100644 --- a/app/javascripts/components/info.js +++ b/app/javascripts/components/info.js @@ -27,24 +27,19 @@ class InfoButton extends React.Component { dropdown = ( ); diff --git a/app/javascripts/components/main.js b/app/javascripts/components/main.js index 38a2a1c..1c28f78 100644 --- a/app/javascripts/components/main.js +++ b/app/javascripts/components/main.js @@ -144,10 +144,10 @@ class GatherPage extends React.Component { constructor(props) { super(props); - this.state = this.getInitialState(); + this.state = this.getInitialState(props); } - getInitialState = () => { + getInitialState = (props) => { let updateTitle = true; let showEventsPanel = true; @@ -175,7 +175,7 @@ class GatherPage extends React.Component { user: null, servers: [], archive: [], - socket: null, + socket: props.socket, events: [], updateTitle: updateTitle, showEventsPanel: showEventsPanel, @@ -491,7 +491,7 @@ class GatherPage extends React.Component {
      • {this.state.users.length} Players Online -
      • +
      diff --git a/app/javascripts/components/sound.js b/app/javascripts/components/sound.js index 1365d3e..17043ae 100644 --- a/app/javascripts/components/sound.js +++ b/app/javascripts/components/sound.js @@ -185,7 +185,6 @@ class MusicSelector extends React.Component {