Refactor lightbox prop drilling (#6073)

* Refactor lightbox footer to render prop

* Unify lightbox types

* Unindent

* Refactor LightboxFooter props

* Move LightboxFooter into the implementation file
This commit is contained in:
dan
2024-11-04 21:31:21 +00:00
committed by GitHub
parent 174988bc5a
commit 26c48373e2
7 changed files with 155 additions and 214 deletions
-1
View File
@@ -152,7 +152,6 @@ export function PostEmbeds({
thumbDims: MeasuredDimensions | null,
) => {
openLightbox({
type: 'images',
images: items,
index,
thumbDims,