Skip to content

Commit 014e5b2

Browse files
committed
update WireCellsAttachmentsPreviewItemView to use new large documents preview
1 parent 59627ad commit 014e5b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WireMessaging/Sources/WireMessagingUI/WireCells/Components/AttachmentsPreviewView/WireCellsAttachmentsPreviewItemView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ struct WireCellsAttachmentsPreviewItemView: View {
9292
.frame(height: 74)
9393
.frame(idealWidth: 288)
9494
case (.document, .large):
95-
WireCellsDocumentAttachmentPreview(
95+
WireCellsLargeDocumentPreviewView(
9696
headerIcon: Image(viewModel.icon),
9797
headerText: viewModel.headerText,
9898
labelText: viewModel.fileName,
9999
progress: viewModel.progress,
100-
isError: viewModel.isAssetDownloadError,
100+
downloadError: viewModel.isAssetDownloadError,
101+
url: viewModel.viewingURL
101102
)
102-
.frame(height: 74)
103103
.frame(idealWidth: 288)
104104
case (.audio, .small), (.audio, .large):
105105
WireCellsDocumentAttachmentPreview(

0 commit comments

Comments
 (0)