diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 14:59:59 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 15:31:45 +0200 |
commit | 1e7edef82bd4b438049c8fa40d8481e91be55408 (patch) | |
tree | 277c75c881589728f2ce1bef1e6df79700c03f09 /sw-ui/src/main/kotlin/org/luxons | |
parent | Add non ideal state overload with String for title (diff) | |
download | seven-wonders-1e7edef82bd4b438049c8fa40d8481e91be55408.tar.gz seven-wonders-1e7edef82bd4b438049c8fa40d8481e91be55408.tar.bz2 seven-wonders-1e7edef82bd4b438049c8fa40d8481e91be55408.zip |
Replace error message with non-ideal-state
Diffstat (limited to 'sw-ui/src/main/kotlin/org/luxons')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt index 89b28934..28ebbe74 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt @@ -1,9 +1,6 @@ package org.luxons.sevenwonders.ui.components.game -import com.palantir.blueprintjs.Intent -import com.palantir.blueprintjs.bpButton -import com.palantir.blueprintjs.bpButtonGroup -import com.palantir.blueprintjs.bpOverlay +import com.palantir.blueprintjs.* import kotlinx.css.* import kotlinx.css.properties.* import kotlinx.html.DIV @@ -19,12 +16,7 @@ import org.luxons.sevenwonders.ui.redux.RequestPrepareMove import org.luxons.sevenwonders.ui.redux.RequestSayReady import org.luxons.sevenwonders.ui.redux.RequestUnprepareMove import org.luxons.sevenwonders.ui.redux.connectStateAndDispatch -import react.RBuilder -import react.RClass -import react.RComponent -import react.RProps -import react.RState -import react.ReactElement +import react.* import react.dom.* import styled.StyledDOMBuilder import styled.css @@ -58,7 +50,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta } val turnInfo = props.gameState?.turnInfo if (turnInfo == null) { - p { +"Error: no turn info data" } + bpNonIdealState(icon = "error", title = "Error: no turn info data") } else { turnInfoScene(turnInfo) } |