Remove useless Box
This commit is contained in:
parent
da9aa7d722
commit
bb3677c161
1 changed files with 30 additions and 29 deletions
|
|
@ -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,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue