Prune
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user