From 8d14e738516e6b0673a6ac6b357fc69e5c1b657a Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 2 Jun 2020 01:55:55 +0200 Subject: Remove useless createElement --- sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-ui/src/main/kotlin/com/palantir/blueprintjs') 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 = {} -): 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, -- cgit