mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Preview the whole bottom sheet.
This commit is contained in:
+3
-10
@@ -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 = {},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user