summaryrefslogtreecommitdiff
path: root/frontend/src/components
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-25 15:46:33 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-25 15:46:33 +0100
commit212954f8d1230a933f608febe16b6129279f2925 (patch)
tree2d1c39fd106aa0c7ba459babde77f4a948a02a12 /frontend/src/components
parentPosition hand at the bottom of the page (diff)
downloadseven-wonders-212954f8d1230a933f608febe16b6129279f2925.tar.gz
seven-wonders-212954f8d1230a933f608febe16b6129279f2925.tar.bz2
seven-wonders-212954f8d1230a933f608febe16b6129279f2925.zip
Use NonIdealState for READY button to be centered
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/game/GameScene.jsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontend/src/components/game/GameScene.jsx b/frontend/src/components/game/GameScene.jsx
index 0437c567..035d9694 100644
--- a/frontend/src/components/game/GameScene.jsx
+++ b/frontend/src/components/game/GameScene.jsx
@@ -1,4 +1,4 @@
-import { Button, Classes, Intent } from '@blueprintjs/core';
+import { Button, Classes, Intent, NonIdealState } from '@blueprintjs/core';
import { List } from 'immutable';
import React, { Component } from 'react';
import { connect } from 'react-redux';
@@ -26,7 +26,6 @@ class GameScenePresenter extends Component<GameSceneProps> {
render() {
return (
<div className='gameSceneRoot fullscreen'>
- <h1>{this.props.game.name}</h1>
{!this.props.turnInfo && <GamePreStart onReadyClicked={this.props.sayReady}/>}
{this.props.turnInfo && this.turnInfoScene()}
@@ -48,10 +47,11 @@ class GameScenePresenter extends Component<GameSceneProps> {
}
}
-const GamePreStart = ({onReadyClicked}) => <div>
- <p>Click "ready" when you are</p>
- <Button text="READY" className={Classes.LARGE} intent={Intent.PRIMARY} icon='play' onClick={onReadyClicked} />
-</div>;
+const GamePreStart = ({onReadyClicked}) => <NonIdealState
+ description={<p>Click "ready" when you are</p>}
+ action={<Button text="READY" className={Classes.LARGE} intent={Intent.PRIMARY} icon='play'
+ onClick={onReadyClicked}/>}
+/>;
const mapStateToProps: (state) => GameSceneProps = state => {
const game = getCurrentGame(state.get('games'));
bgstack15