mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +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,
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user