Preview the whole bottom sheet.
This commit is contained in:
parent
22a6ef4891
commit
5d9cfbd89a
1 changed files with 3 additions and 10 deletions
|
|
@ -217,23 +217,16 @@ private fun RoomListModalBottomSheetContent(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO This component should be seen in [RoomListView] @Preview but it doesn't show up.
|
|
||||||
// see: https://issuetracker.google.com/issues/283843380
|
|
||||||
// Remove this preview when the issue is fixed.
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun RoomListModalBottomSheetContentPreview(
|
internal fun RoomListContextMenuPreview(
|
||||||
@PreviewParameter(RoomListStateContextMenuShownProvider::class) contextMenu: RoomListState.ContextMenu.Shown
|
@PreviewParameter(RoomListStateContextMenuShownProvider::class) contextMenu: RoomListState.ContextMenu.Shown
|
||||||
) = ElementPreview {
|
) = ElementPreview {
|
||||||
RoomListModalBottomSheetContent(
|
RoomListContextMenu(
|
||||||
contextMenu = contextMenu,
|
contextMenu = contextMenu,
|
||||||
canReportRoom = true,
|
canReportRoom = true,
|
||||||
onRoomMarkReadClick = {},
|
|
||||||
onRoomMarkUnreadClick = {},
|
|
||||||
onRoomSettingsClick = {},
|
onRoomSettingsClick = {},
|
||||||
onLeaveRoomClick = {},
|
|
||||||
onFavoriteChange = {},
|
|
||||||
onClearCacheRoomClick = {},
|
|
||||||
onReportRoomClick = {},
|
onReportRoomClick = {},
|
||||||
|
eventSink = {},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue