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, contentPadding: PaddingValues,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) { ) {
Box(modifier = modifier) {
when (contentState) { when (contentState) {
is RoomListContentState.Skeleton -> { is RoomListContentState.Skeleton -> {
SkeletonView( SkeletonView(
modifier = modifier,
count = contentState.count, count = contentState.count,
contentPadding = contentPadding, contentPadding = contentPadding,
) )
} }
is RoomListContentState.Empty -> { is RoomListContentState.Empty -> {
EmptyView( EmptyView(
modifier = modifier,
state = contentState, state = contentState,
eventSink = eventSink, eventSink = eventSink,
onSetUpRecoveryClick = onSetUpRecoveryClick, onSetUpRecoveryClick = onSetUpRecoveryClick,
@ -88,6 +89,7 @@ fun RoomListContentView(
} }
is RoomListContentState.Rooms -> { is RoomListContentState.Rooms -> {
RoomsView( RoomsView(
modifier = modifier,
state = contentState, state = contentState,
hideInvitesAvatars = hideInvitesAvatars, hideInvitesAvatars = hideInvitesAvatars,
filtersState = filtersState, filtersState = filtersState,
@ -100,7 +102,6 @@ fun RoomListContentView(
} }
} }
} }
}
@Composable @Composable
private fun SkeletonView( private fun SkeletonView(