summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2021-02-20 13:13:57 +0100
committerJoffrey Bion <joffrey.bion@gmail.com>2021-02-20 13:13:57 +0100
commitbe67ab14e1b529e4c7774c793e08b7c7739f93de (patch)
tree3b1754caea6a9dc2062b6a7c6c698e7b611f77d7
parentAdd all bluprinjs Classes constants (diff)
downloadseven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.tar.gz
seven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.tar.bz2
seven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.zip
Use .let for non-ideal-state props
-rw-r--r--sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt10
1 files changed, 5 insertions, 5 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 ab3daf6e..7869198f 100644
--- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
+++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
@@ -143,11 +143,11 @@ fun RBuilder.bpNonIdealState(
block: RHandler<INonIdealStateProps> = {},
): ReactElement = child(NonIdealState::class) {
attrs {
- this.icon = icon
- this.title = title
- this.description = description
- this.action = action
- this.children = children
+ icon?.let { this.icon = it }
+ title?.let { this.title = it }
+ description?.let { this.description = it }
+ action?.let { this.action = it }
+ children?.let { this.children = it }
}
block()
}
bgstack15