Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Inline

Manav Rathi5ad7e2f128c6
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index 8e8a02d3bc..e292083c88 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -39,10 +39,6 @@ import InfoIcon from "@mui/icons-material/InfoOutlined";
import ReplayIcon from "@mui/icons-material/Replay";
import ZoomInOutlinedIcon from "@mui/icons-material/ZoomInOutlined";
import { Box, Button, styled } from "@mui/material";
-import {
- defaultLivePhotoDefaultOptions,
- photoSwipeV4Events,
-} from "constants/photoViewer";
import { t } from "i18next";
import isElectron from "is-electron";
import { AppContext } from "pages/_app";
@@ -64,6 +60,34 @@ interface PhotoswipeFullscreenAPI {
isFullscreen: () => boolean;
}
+const defaultLivePhotoDefaultOptions = {
+ click: () => {},
+ hide: () => {},
+ show: () => {},
+ loading: false,
+ 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",
diff --git a/web/apps/photos/src/constants/photoViewer.ts b/web/apps/photos/src/constants/photoViewer.ts
deleted file mode 100644
index b5f3d35d88..0000000000
--- a/web/apps/photos/src/constants/photoViewer.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-export const defaultLivePhotoDefaultOptions = {
- click: () => {},
- hide: () => {},
- show: () => {},
- loading: false,
- visible: false,
-};
-
-export const photoSwipeV4Events = [
- "beforeChange",
- "afterChange",
- "imageLoadComplete",
- "resize",
- "gettingData",
- "mouseUsed",
- "initialZoomIn",
- "initialZoomInEnd",
- "initialZoomOut",
- "initialZoomOutEnd",
- "parseVerticalMargin",
- "close",
- "unbindEvents",
- "destroy",
- "updateScrollOffset",
- "preventDragEvent",
- "shareLinkClick",
-];