summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/com/palantir/blueprintjs
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-06-02 01:55:55 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-06-02 01:56:37 +0200
commit8d14e738516e6b0673a6ac6b357fc69e5c1b657a (patch)
tree5f6354ef5400998eb98f2f61da4254638fef9564 /sw-ui/src/main/kotlin/com/palantir/blueprintjs
parentAdd title on hand rotation direction (diff)
downloadseven-wonders-8d14e738516e6b0673a6ac6b357fc69e5c1b657a.tar.gz
seven-wonders-8d14e738516e6b0673a6ac6b357fc69e5c1b657a.tar.bz2
seven-wonders-8d14e738516e6b0673a6ac6b357fc69e5c1b657a.zip
Remove useless createElement
Diffstat (limited to 'sw-ui/src/main/kotlin/com/palantir/blueprintjs')
-rw-r--r--sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
index d486f818..bf4df032 100644
--- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
+++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
@@ -1,11 +1,11 @@
package com.palantir.blueprintjs
-import org.luxons.sevenwonders.ui.utils.createElement
import org.w3c.dom.events.Event
import org.w3c.dom.events.MouseEvent
import react.RBuilder
import react.RHandler
import react.ReactElement
+import react.buildElement
import react.dom.*
typealias IconName = String
@@ -129,7 +129,7 @@ fun RBuilder.bpNonIdealState(
action: ReactElement? = null,
children: ReactElement? = null,
block: RHandler<INonIdealStateProps> = {}
-): ReactElement = bpNonIdealState(icon, createElement { h2 { +title } }, description, action, children, block)
+): ReactElement = bpNonIdealState(icon, buildElement { h2 { +title } }, description, action, children, block)
fun RBuilder.bpOverlay(
isOpen: Boolean,
bgstack15