From be67ab14e1b529e4c7774c793e08b7c7739f93de Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 20 Feb 2021 13:13:57 +0100 Subject: Use .let for non-ideal-state props --- .../main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw-ui/src/main/kotlin/com/palantir') 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 = {}, ): 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() } -- cgit