mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 15:44:54 +00:00
Naming convention. View / Content
This commit is contained in:
committed by
Benoit Marty
parent
7f0755e8ec
commit
9edf715911
+3
-3
@@ -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 = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user