Browse Source

Fix Preview issue with TextComposerReplyPreview

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

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

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

Loading…
Cancel
Save