Remove useless Box

This commit is contained in:
Benoit Marty 2025-07-08 16:40:34 +02:00 committed by Benoit Marty
parent da9aa7d722
commit bb3677c161

View file

@ -69,16 +69,17 @@ fun RoomListContentView(
contentPadding: PaddingValues,
modifier: Modifier = Modifier,
) {
Box(modifier = modifier) {
when (contentState) {
is RoomListContentState.Skeleton -> {
SkeletonView(
modifier = modifier,
count = contentState.count,
contentPadding = contentPadding,
)
}
is RoomListContentState.Empty -> {
EmptyView(
modifier = modifier,
state = contentState,
eventSink = eventSink,
onSetUpRecoveryClick = onSetUpRecoveryClick,
@ -88,6 +89,7 @@ fun RoomListContentView(
}
is RoomListContentState.Rooms -> {
RoomsView(
modifier = modifier,
state = contentState,
hideInvitesAvatars = hideInvitesAvatars,
filtersState = filtersState,
@ -99,7 +101,6 @@ fun RoomListContentView(
)
}
}
}
}
@Composable