Move the button to open the Showkase browser to the developer settings screen. (#389)

This commit is contained in:
Benoit Marty 2023-05-04 17:29:03 +02:00
parent e5912edfb5
commit 6b77313fd6
12 changed files with 47 additions and 165 deletions

View file

@ -16,8 +16,7 @@
package io.element.android.libraries.featureflag.ui
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
@ -34,14 +33,10 @@ fun FeatureListView(
onCheckedChange: (FeatureUiModel, Boolean) -> Unit,
modifier: Modifier = Modifier
) {
LazyColumn(
Column(
modifier = modifier,
) {
items(
items = features,
key = { it.key }
) { feature ->
features.forEach { feature ->
fun onCheckedChange(isChecked: Boolean) {
onCheckedChange(feature, isChecked)
}