diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-02-20 13:13:57 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2021-02-20 13:13:57 +0100 |
commit | be67ab14e1b529e4c7774c793e08b7c7739f93de (patch) | |
tree | 3b1754caea6a9dc2062b6a7c6c698e7b611f77d7 /sw-ui/src/main/kotlin/com | |
parent | Add all bluprinjs Classes constants (diff) | |
download | seven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.tar.gz seven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.tar.bz2 seven-wonders-be67ab14e1b529e4c7774c793e08b7c7739f93de.zip |
Use .let for non-ideal-state props
Diffstat (limited to 'sw-ui/src/main/kotlin/com')
-rw-r--r-- | sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 10 |
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() } |