summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/org
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-22 14:59:12 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-22 15:31:45 +0200
commiteeb9e9096c61c8d3fa7d50b88201a3c2b3de364d (patch)
treefa912791ee1ffc4feb633fa5e63aacdbefa98cf2 /sw-ui/src/main/kotlin/org
parentSplit blueprintjs declarations into multiple files (diff)
downloadseven-wonders-eeb9e9096c61c8d3fa7d50b88201a3c2b3de364d.tar.gz
seven-wonders-eeb9e9096c61c8d3fa7d50b88201a3c2b3de364d.tar.bz2
seven-wonders-eeb9e9096c61c8d3fa7d50b88201a3c2b3de364d.zip
Add non ideal state overload with String for title
Diffstat (limited to 'sw-ui/src/main/kotlin/org')
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/utils/ReactUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/utils/ReactUtils.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/utils/ReactUtils.kt
index 07b3f2b5..54260a81 100644
--- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/utils/ReactUtils.kt
+++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/utils/ReactUtils.kt
@@ -9,7 +9,7 @@ import react.dom.*
/**
* Creates a ReactElement without appending it (so that is can be passed around).
*/
-fun createElement(block: RBuilder.() -> ReactElement): ReactElement {
+fun createElement(block: RBuilder.() -> Unit): ReactElement {
return RDOMBuilder { SPAN(attributesMapOf("class", null), it) }
.apply { block() }
.create()
bgstack15