about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/index.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-04 21:31:21 +0000
committerGitHub <noreply@github.com>2024-11-04 21:31:21 +0000
commit26c48373e29643ca7a3248315506131d53d05b8b (patch)
tree7931136c51cf779cad1a94cce28af78cc7cb0c6e /src/view/com/util/post-embeds/index.tsx
parent174988bc5ab00774d200a882312985f55d903d81 (diff)
downloadvoidsky-26c48373e29643ca7a3248315506131d53d05b8b.tar.zst
Refactor lightbox prop drilling (#6073)
* Refactor lightbox footer to render prop

* Unify lightbox types

* Unindent

* Refactor LightboxFooter props

* Move LightboxFooter into the implementation file
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r--src/view/com/util/post-embeds/index.tsx1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx
index 13e4d12e0..d686d2bd3 100644
--- a/src/view/com/util/post-embeds/index.tsx
+++ b/src/view/com/util/post-embeds/index.tsx
@@ -152,7 +152,6 @@ export function PostEmbeds({
         thumbDims: MeasuredDimensions | null,
       ) => {
         openLightbox({
-          type: 'images',
           images: items,
           index,
           thumbDims,