Skip to content

Commit

Permalink
feat: add delete button to document upload preview
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Fitz committed Feb 13, 2025
1 parent 1272b38 commit ad37ebc
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ struct UploadDocumentPreview: View {
cornerRadius: 10,
padding: 8
)
.deleteItemButton(onRemove: { onRemove() })
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class UploadDocumentPreviewTests: XCTestCase {
func testColorSchemeVariantsEmptyState() {
let view = UploadDocumentPreview_Preview()
.frame(width: 200, height: 200)
.padding()

snapshotHelper
.withUserInterfaceStyle(.light)
Expand All @@ -52,6 +53,7 @@ class UploadDocumentPreviewTests: XCTestCase {
func testDynamicTypeVariantsEmptyState() {
let view = UploadDocumentPreview_Preview()
.frame(width: 200, height: 200)
.padding()

for dynamicTypeSize in DynamicTypeSize.allCases {
snapshotHelper
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad37ebc

Please sign in to comment.