Drive-by lightbox refactors (#1659)
* Remove dead code from lightbox * Rename imageIndex prop to initialImageIndex * Rename currentImageIndex to imageIndex
This commit is contained in:
parent
bc2c44cb98
commit
d47ff542da
3 changed files with 15 additions and 40 deletions
|
@ -26,7 +26,7 @@ export const Lightbox = observer(function Lightbox() {
|
|||
return (
|
||||
<ImageView
|
||||
images={[{uri: opts.profileView.avatar || ''}]}
|
||||
imageIndex={0}
|
||||
initialImageIndex={0}
|
||||
visible
|
||||
onRequestClose={onClose}
|
||||
FooterComponent={LightboxFooter}
|
||||
|
@ -37,7 +37,7 @@ export const Lightbox = observer(function Lightbox() {
|
|||
return (
|
||||
<ImageView
|
||||
images={opts.images.map(img => ({...img}))}
|
||||
imageIndex={opts.index}
|
||||
initialImageIndex={opts.index}
|
||||
visible
|
||||
onRequestClose={onClose}
|
||||
FooterComponent={LightboxFooter}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue