From 6640170c01ccf5c7de8c0893379c1b500f9e9fb1 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 3 Jul 2022 00:18:46 +0200 Subject: Upgrade to Kotlin 1.7 --- .../kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialList.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw-ui/src/main') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialList.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialList.kt index 3ca8c425..39ac8e8b 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialList.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialList.kt @@ -39,7 +39,6 @@ fun RBuilder.radialList( } } -@OptIn(ExperimentalStdlibApi::class) private fun RBuilder.radialListItems( items: List, renderItem: (T) -> ReactElement, @@ -58,7 +57,7 @@ private fun RBuilder.radialListItems( } // We ensure a stable order of the DOM elements so that position animations look nice. // We still respect the order of the items in the list when placing them along the circle. - val indexByKey = buildMap { + val indexByKey = buildMap { items.forEachIndexed { index, item -> put(getKey(item), index) } } items.sortedBy { getKey(it) }.forEach { item -> -- cgit