Browse Source

Fix Preview issue with TextComposerReplyPreview

pull/3758/head
Benoit Marty 2 days ago
parent
commit
b79ab2e1e5
  1. 12
      libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

12
libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

@ -576,15 +576,21 @@ internal fun MarkdownTextComposerEditPreview() = ElementPreview { @@ -576,15 +576,21 @@ internal fun MarkdownTextComposerEditPreview() = ElementPreview {
@PreviewsDayNight
@Composable
internal fun TextComposerReplyPreview(@PreviewParameter(InReplyToDetailsProvider::class) inReplyToDetails: InReplyToDetails) = ElementPreview {
PreviewColumn(
items = persistentListOf(
aMessageComposerModeReply(
replyToDetails = inReplyToDetails,
),
)
) { composerMode ->
ATextComposer(
state = aTextEditorStateRich(),
voiceMessageState = VoiceMessageState.Idle,
composerMode = aMessageComposerModeReply(
replyToDetails = inReplyToDetails,
),
composerMode = composerMode,
enableVoiceMessages = true,
)
}
}
@PreviewsDayNight
@Composable

Loading…
Cancel
Save