Update screenshots

This commit is contained in:
Florian Renaud 2023-04-12 16:48:00 +02:00
parent 552f66a92a
commit 97a40b35df
12 changed files with 33 additions and 17 deletions

View file

@ -18,11 +18,21 @@ package io.element.android.features.createroom.impl.configureroom
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import io.element.android.features.createroom.impl.CreateRoomConfig
import io.element.android.features.userlist.api.aListOfSelectedUsers
open class ConfigureRoomStateProvider : PreviewParameterProvider<ConfigureRoomState> {
override val values: Sequence<ConfigureRoomState>
get() = sequenceOf(
aConfigureRoomState(),
aConfigureRoomState().copy(
config = CreateRoomConfig(
roomName = "Room 101",
topic = "Room topic for this room when the text goes onto multiple lines and is really long, there shouldnt be more than 3 lines",
invites = aListOfSelectedUsers(),
privacy = RoomPrivacy.Private,
),
isCreateButtonEnabled = true,
),
)
}

View file

@ -63,4 +63,4 @@ fun aUserListState() = UserListState(
eventSink = {}
)
fun aListOfSelectedUsers() = aMatrixUserList().take(4).toImmutableList()
fun aListOfSelectedUsers() = aMatrixUserList().take(6).toImmutableList()