This commit is contained in:
Manav Rathi
2025-01-02 16:39:38 +05:30
parent 2bc9251a09
commit af5e072ea5

View File

@@ -115,26 +115,24 @@ export type PhotoViewerProps = Pick<
*
* The underlying library that we use is called PhotoSwipe.
*/
export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
const {
isOpen,
items,
currentIndex,
onClose,
gettingData,
forceConvertItem,
favoriteFileIDs,
markUnsyncedFavoriteUpdate,
markTempDeleted,
isTrashCollection,
isInHiddenSection,
enableDownload,
setFilesDownloadProgressAttributesCreator,
fileToCollectionsMap,
collectionNameMap,
onSelectPerson,
} = props;
export const PhotoViewer: React.FC<PhotoViewerProps> = ({
isOpen,
items,
currentIndex,
onClose,
gettingData,
forceConvertItem,
favoriteFileIDs,
markUnsyncedFavoriteUpdate,
markTempDeleted,
isTrashCollection,
isInHiddenSection,
enableDownload,
setFilesDownloadProgressAttributesCreator,
fileToCollectionsMap,
collectionNameMap,
onSelectPerson,
}) => {
const galleryContext = useContext(GalleryContext);
const { showLoadingBar, hideLoadingBar, showMiniDialog } =
useContext(AppContext);
@@ -984,26 +982,6 @@ const defaultLivePhotoDefaultOptions = {
visible: false,
};
const photoSwipeV4Events = [
"beforeChange",
"afterChange",
"imageLoadComplete",
"resize",
"gettingData",
"mouseUsed",
"initialZoomIn",
"initialZoomInEnd",
"initialZoomOut",
"initialZoomOutEnd",
"parseVerticalMargin",
"close",
"unbindEvents",
"destroy",
"updateScrollOffset",
"preventDragEvent",
"shareLinkClick",
];
const CaptionContainer = styled("div")(({ theme }) => ({
padding: theme.spacing(2),
wordBreak: "break-word",