Improve preview of AttachmentsPreviewViewPreview to have the case with a caption.
This commit is contained in:
parent
a4523a8de1
commit
47ec84f6b3
1 changed files with 18 additions and 13 deletions
|
|
@ -24,7 +24,12 @@ open class AttachmentsPreviewStateProvider : PreviewParameterProvider<Attachment
|
||||||
override val values: Sequence<AttachmentsPreviewState>
|
override val values: Sequence<AttachmentsPreviewState>
|
||||||
get() = sequenceOf(
|
get() = sequenceOf(
|
||||||
anAttachmentsPreviewState(),
|
anAttachmentsPreviewState(),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = false)),
|
anAttachmentsPreviewState(
|
||||||
|
sendActionState = SendActionState.Sending.Processing(displayProgress = false),
|
||||||
|
textEditorState = aTextEditorStateMarkdown(
|
||||||
|
initialText = "This is a caption!"
|
||||||
|
)
|
||||||
|
),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = true)),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = true)),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.ReadyToUpload(aMediaUploadInfo())),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.ReadyToUpload(aMediaUploadInfo())),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Uploading(0.5f, aMediaUploadInfo())),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Uploading(0.5f, aMediaUploadInfo())),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue