mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix Preview issue with TextComposerReplyPreview
This commit is contained in:
+14
-8
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user