From 6079e1ed2336ec8686b081e52da8ac23f42ab73e Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 21 Feb 2021 21:54:10 +0100 Subject: Move lobby to Zeus temple background Related: https://github.com/joffrey-bion/seven-wonders/issues/69 --- .../com/palantir/blueprintjs/blueprintjsHelpers.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 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 7869198f..721fdaca 100644 --- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt +++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt @@ -92,16 +92,18 @@ fun RBuilder.bpTag( fill: Boolean? = null, active: Boolean? = null, icon: String? = null, + className: String? = null, block: RHandler = {}, ): ReactElement = child(Tag::class) { attrs { - this.intent = intent - this.minimal = minimal - this.large = large - this.round = round - this.fill = fill - this.icon = icon - this.active = active + intent?.let { this.intent = it } + minimal?.let { this.minimal = it } + large?.let { this.large = it } + round?.let { this.round = it } + fill?.let { this.fill = it } + icon?.let { this.icon = it } + active?.let { this.active = it } + className?.let { this.className = it } } block() } -- cgit