mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Remove useless Box
This commit is contained in:
committed by
Benoit Marty
parent
cba4a3a029
commit
2232a745c9
+30
-29
@@ -69,35 +69,36 @@ 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(
|
||||||
state = contentState,
|
modifier = modifier,
|
||||||
eventSink = eventSink,
|
state = contentState,
|
||||||
onSetUpRecoveryClick = onSetUpRecoveryClick,
|
eventSink = eventSink,
|
||||||
onConfirmRecoveryKeyClick = onConfirmRecoveryKeyClick,
|
onSetUpRecoveryClick = onSetUpRecoveryClick,
|
||||||
onCreateRoomClick = onCreateRoomClick,
|
onConfirmRecoveryKeyClick = onConfirmRecoveryKeyClick,
|
||||||
)
|
onCreateRoomClick = onCreateRoomClick,
|
||||||
}
|
)
|
||||||
is RoomListContentState.Rooms -> {
|
}
|
||||||
RoomsView(
|
is RoomListContentState.Rooms -> {
|
||||||
state = contentState,
|
RoomsView(
|
||||||
hideInvitesAvatars = hideInvitesAvatars,
|
modifier = modifier,
|
||||||
filtersState = filtersState,
|
state = contentState,
|
||||||
eventSink = eventSink,
|
hideInvitesAvatars = hideInvitesAvatars,
|
||||||
onSetUpRecoveryClick = onSetUpRecoveryClick,
|
filtersState = filtersState,
|
||||||
onConfirmRecoveryKeyClick = onConfirmRecoveryKeyClick,
|
eventSink = eventSink,
|
||||||
onRoomClick = onRoomClick,
|
onSetUpRecoveryClick = onSetUpRecoveryClick,
|
||||||
contentPadding = contentPadding,
|
onConfirmRecoveryKeyClick = onConfirmRecoveryKeyClick,
|
||||||
)
|
onRoomClick = onRoomClick,
|
||||||
}
|
contentPadding = contentPadding,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user