Skip to content

Commit

Permalink
UI improved
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Jan 5, 2025
1 parent e23ae40 commit 47089e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ fun ImagePreviewGrid(
},
onShare = onShareImage,
onDismiss = { showImagePreviewDialog = false },
onNavigate = onNavigate
onNavigate = {
showImagePreviewDialog = false
onNavigate(it)
}
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ fun DocumentScannerContent(
visible = selectedUriForPreview != null,
selectedUri = selectedUriForPreview,
uris = component.uris,
onNavigate = component.onNavigate,
onNavigate = {
selectedUriForPreview = null
component.onNavigate(it)
},
onUriSelected = { selectedUriForPreview = it },
onShare = component::shareUri,
onDismiss = { selectedUriForPreview = null }
Expand Down

0 comments on commit 47089e1

Please sign in to comment.