Naming convention. View / Content
This commit is contained in:
parent
78a83c0592
commit
dae699b81f
1 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ fun RoomListView(
|
||||||
state.eventSink(RoomListEvents.UpdateVisibleRange(range))
|
state.eventSink(RoomListEvents.UpdateVisibleRange(range))
|
||||||
}
|
}
|
||||||
|
|
||||||
RoomListView(
|
RoomListContent(
|
||||||
roomSummaries = state.roomList,
|
roomSummaries = state.roomList,
|
||||||
matrixUser = state.matrixUser,
|
matrixUser = state.matrixUser,
|
||||||
filter = state.filter,
|
filter = state.filter,
|
||||||
|
|
@ -78,7 +78,7 @@ fun RoomListView(
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun RoomListView(
|
fun RoomListContent(
|
||||||
roomSummaries: ImmutableList<RoomListRoomSummary>,
|
roomSummaries: ImmutableList<RoomListRoomSummary>,
|
||||||
matrixUser: MatrixUser?,
|
matrixUser: MatrixUser?,
|
||||||
filter: String,
|
filter: String,
|
||||||
|
|
@ -165,7 +165,7 @@ fun RoomListViewDarkPreview() = ElementPreviewDark { ContentToPreview() }
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun ContentToPreview() {
|
private fun ContentToPreview() {
|
||||||
RoomListView(
|
RoomListContent(
|
||||||
roomSummaries = stubbedRoomSummaries(),
|
roomSummaries = stubbedRoomSummaries(),
|
||||||
matrixUser = MatrixUser(id = UserId("@id"), username = "User#1", avatarData = AvatarData("U")),
|
matrixUser = MatrixUser(id = UserId("@id"), username = "User#1", avatarData = AvatarData("U")),
|
||||||
onRoomClicked = {},
|
onRoomClicked = {},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue