Hiding the buttons when the search is active

This commit is contained in:
Maxime NATUREL 2023-03-07 10:05:38 +01:00 committed by Florian Renaud
parent aa2b4919da
commit a6ae25c5a1

View file

@ -19,7 +19,6 @@ package io.element.android.features.createroom.root
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.SearchBarDefaults
import androidx.compose.material3.TextButton
@ -76,6 +75,7 @@ fun CreateRoomRootScreen(
active = isSearchActive,
)
if (!isSearchActive.value) {
TextButton(
modifier = Modifier.padding(start = 8.dp, top = 16.dp, end = 8.dp),
onClick = { }) {
@ -103,6 +103,7 @@ fun CreateRoomRootScreen(
}
}
}
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable