|
@@ -22,7 +22,7 @@ const GamePanel = ({
|
|
|
<div style={{ height: "100%", margin: "2px", flex: 3 }}>
|
|
|
<PositionedStreetView position={streetViewPoint} />
|
|
|
</div>
|
|
|
- <GuessPane
|
|
|
+ <GuessPane
|
|
|
roundSeconds={roundSeconds}
|
|
|
onTimeout={onTimeout}
|
|
|
onSelectPoint={onSelectPoint}
|
|
@@ -76,23 +76,23 @@ class GamePanelContainer extends React.Component {
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const {
|
|
|
- currentRound,
|
|
|
- targetPoint,
|
|
|
- selectedPoint,
|
|
|
- roundTimer,
|
|
|
- submitDisabled
|
|
|
+ const {
|
|
|
+ currentRound,
|
|
|
+ targetPoint,
|
|
|
+ selectedPoint,
|
|
|
+ roundTimer,
|
|
|
+ submitDisabled
|
|
|
} = this.state;
|
|
|
if (!currentRound || !targetPoint || !roundTimer) {
|
|
|
return <Loading/>
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return (
|
|
|
<GamePanel
|
|
|
onSelectPoint={selectedPoint => this.setState({ selectedPoint })}
|
|
|
onSubmitGuess={() => this.handleSubmitGuess()}
|
|
|
streetViewPoint={targetPoint}
|
|
|
- selectedPoint={selectedPoint}
|
|
|
+ selectedPoint={selectedPoint}
|
|
|
roundSeconds={roundTimer}
|
|
|
onTimeout={() => this.handleSubmitGuess()}
|
|
|
submitDisabled={submitDisabled}
|