mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-07 11:00:22 +00:00
Remove useless Box
This commit is contained in:
committed by
Benoit Marty
parent
cba4a3a029
commit
2232a745c9
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user