RoomListFilters : rename empty
This commit is contained in:
parent
5868a46e82
commit
95ca770122
3 changed files with 8 additions and 8 deletions
|
|
@ -24,5 +24,5 @@ data class RoomListFiltersState(
|
|||
val isFeatureEnabled: Boolean,
|
||||
val eventSink: (RoomListFiltersEvents) -> Unit,
|
||||
) {
|
||||
val showClearFilterButton = selectedFilters.isNotEmpty()
|
||||
val hasAnyFilterSelected = selectedFilters.isNotEmpty()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,12 +64,12 @@ fun RoomListFiltersView(
|
|||
state.eventSink(RoomListFiltersEvents.ToggleFilter(filter))
|
||||
}
|
||||
|
||||
val startPadding = if (state.showClearFilterButton) 4.dp else 16.dp
|
||||
val startPadding = if (state.hasAnyFilterSelected) 4.dp else 16.dp
|
||||
Row(
|
||||
modifier = modifier.padding(start = startPadding, end = 16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
AnimatedVisibility(visible = state.showClearFilterButton) {
|
||||
AnimatedVisibility(visible = state.hasAnyFilterSelected) {
|
||||
RoomListClearFiltersButton(onClick = ::onClearFiltersClicked)
|
||||
}
|
||||
val lazyListState = rememberLazyListState()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue